mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
feat: only allow the sync trigger if an emergency vehicle
This commit is contained in:
@@ -111,6 +111,7 @@ Citizen.CreateThread( function()
|
|||||||
local vehEntering = GetVehiclePedIsEntering( PLY.ped )
|
local vehEntering = GetVehiclePedIsEntering( PLY.ped )
|
||||||
|
|
||||||
Citizen.Wait( 2000 )
|
Citizen.Wait( 2000 )
|
||||||
|
if ( GetVehicleClass( vehEntering ) == 18 ) then
|
||||||
|
|
||||||
local veh = GetVehiclePedIsIn( PLY.ped, false )
|
local veh = GetVehiclePedIsIn( PLY.ped, false )
|
||||||
|
|
||||||
@@ -118,6 +119,7 @@ Citizen.CreateThread( function()
|
|||||||
SYNC:SyncDataOnEnter()
|
SYNC:SyncDataOnEnter()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Citizen.Wait( 500 )
|
Citizen.Wait( 500 )
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user