Secure your FiveM server with our Anti VDM Code. T
his free script prevents players from vehicle-based exploits by allowing cars to pass through players, protecting against troll attacks.
Simply integrate the code for a safer gaming experience.
his free script prevents players from vehicle-based exploits by allowing cars to pass through players, protecting against troll attacks.
Simply integrate the code for a safer gaming experience.
Code:
GuvenliBolgeler = {
[1] = { coords = vector3(770.1771, -234.966, 66.146), radius = 200000.0 },
}
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
local coords = GetEntityCoords(PlayerPedId())
local ply = PlayerPedId()
local pos = GetEntityCoords(GetPlayerPed(-1))
if GetDistanceBetweenCoords(pos, GuvenliBolgeler[1].coords, true) < GuvenliBolgeler[1].radius * 1.5 then
Citizen.Wait(0)
local vehList = GetGamePool('CVehicle')
for k,v in pairs(vehList) do
SetEntityNoCollisionEntity(v, GetPlayerPed(-1), true)
end
end
end
end)
Last edited by a moderator: