local samp = require "samp.events"
local act = false
function q.onSendUnoocupiedSync(data)
if act then
local heading = getCharHeading(playerPed)
data.moveSpeed = {math.sin(-math.rad(heading)) * 10, math.cos(-math.rad(heading)) * 10, 0}
end
end
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("troll", function()
act = not act
sampAddChatMessage(act and "enabled" or "diabled")
end)
wait(-1)
end