MrElgu
1
Hi here,
I want to modify these lines to :
- Add the same lock system on unoccupied vehicle (car_lockpick required)
- Add lock vehicle animation on both of them
if DoesEntityExist(GetVehiclePedIsTryingToEnter(PlayerPedId(GetPlayerPed(-1)))) and not
Config.RobNPCVehicles then
local vehicle = GetVehiclePedIsTryingToEnter(GetPlayerPed(-1))
if GetPedInVehicleSeat(vehicle, -1) ~= 0 then
if not IsPedAPlayer(GetPedInVehicleSeat(vehicle, -1)) then
ClearPedTasksImmediately(GetPlayerPed(-1))