local se = require("samp.events")
local nops = false
function main()
while not isSampAvailable() do
wait(100)
end
sampRegisterChatCommand("nops",
function()
nops = not nops
sampAddChatMessage(("nops | %s"):format(nops and "on" or "off"))
end
)
wait(-1)
end
function nop()
if nops then
return false
end
end
se.onSetPlayerPos = nop
se.onSetVehiclePosition = nop