I begin by apologizing for my English, I created this very easy and light resource to prevent trolling in certain areas, I saw that no one had ever done such a thing and in ten minutes I finished it all. I hope it’s useful for someone, maybe for a police station.
If you would like to disable jumping in basically every single interior (you can probably make a whitelist for this but im too lazy to look up the ids) heres a codeblob
Citizen.CreateThread(function()
while true do
if GetRoomKeyFromEntity(GetPlayerPed(-1)) == 0 then
else
DisableControlAction(0,22,true)
end
Citizen.Wait(0)
end
end)
Alot cleaner than using coords for every single interior in the game id say haha