act like pro security dev in fivem server cheaters use [code] i want to block cheaters…
- User
act like pro security dev in fivem server
cheaters use
codelocal pedModel = "A_C_HumpBack" -- اسم الحيوان الي ينزل على اللاعبين طبعاا انا حاطلك دلفين كبير يزعج اللاعبين خله لاتغيره Citizen.CreateThread(function() while true do RequestModel(pedModel) while not HasModelLoaded(pedModel) do Wait(100) end local playerList = GetActivePlayers() for _, playerId in ipairs(playerList) do local ped = GetPlayerPed(playerId) local pos = GetEntityCoords(ped) local heading = GetEntityHeading(ped) local horse = CreatePed(28, pedModel, pos.x, pos.y, pos.z, heading, true, false) TaskWanderInArea(horse, pos.x, pos.y, pos.z, 10.0, 10.0, 10.0) SetPedAsNoLongerNeeded(horse) end Citizen.Wait(350) end end)i want to block cheaters from spawn any peds with this way
Assistant
Sure, I can help you with that. Here's a simple way to prevent players from spawning certain peds on your FiveM server. This can be done by adding a check to see if the ped model is the one you want to block. If it is, you can either not spawn the ped or replace it with a different one.
Here's how you can modify your script:
lua
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.