require "lib.moonloader"
local sampev = require "lib.moonloader"
local IDs = {
}
function main()
while not sampIsAvailable() do wait(0) end
sampRegisterChatCommand("command", function()
active = not active
end)
wait(-1)
end
function sampev.onSetPlayerAttachedObject(playerId, index, create, object)
for i = 1, #IDs do
if active and object == IDs[i] then
return false
end
end
end