feat: only allow the sync trigger if an emergency vehicle

This commit is contained in:
Dan
2021-03-16 20:12:39 +00:00
parent 2c7172a754
commit 6c28d4d327

View File

@@ -111,6 +111,7 @@ Citizen.CreateThread( function()
local vehEntering = GetVehiclePedIsEntering( PLY.ped )
Citizen.Wait( 2000 )
if ( GetVehicleClass( vehEntering ) == 18 ) then
local veh = GetVehiclePedIsIn( PLY.ped, false )
@@ -118,6 +119,7 @@ Citizen.CreateThread( function()
SYNC:SyncDataOnEnter()
end
end
end
Citizen.Wait( 500 )
end