Pour désactiver les vols de véhicules PNJ rendez-vous dans le coté client :
- Saisir le code ci-dessous
---------- disable pnj Carjacking
Citizen.CreateThread(function()
while true do
Wait(800)
local player = GetPlayerPed(-1)
local PlayerPedId = PlayerPedId(player)
local veh = GetVehiclePedIsTryingToEnter(PlayerPedId)
if veh ~= nil and DoesEntityExist(veh) then
local lockStatus = GetVehicleDoorLockStatus(veh)
if lockStatus == 7 then
SetVehicleDoorsLocked(veh, 2)
end
local ped = GetPedInVehicleSeat(veh, -1)
if ped then
SetPedCanBeDraggedOut(ped, false)
end
end
end
end)
- Enregistrer votre fichier
- Au prochain redémarrage les vols de véhicules de PNJ seront désactivé