Skip to content

Commit

Permalink
Create toggle_mount.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
MillhioreBT committed Apr 28, 2024
1 parent 2324a39 commit 7476fe3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/scripts/network/toggle_mount.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local handler = PacketHandler(0xD4)

function handler.onReceive(player, msg)
local mount = msg:getByte() ~= 0
player:toggleMount(mount)
end

handler:register()

0 comments on commit 7476fe3

Please sign in to comment.