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,11 +111,13 @@ 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 )
|
||||||
|
|
||||||
if ( veh == vehEntering ) then
|
if ( veh == vehEntering ) then
|
||||||
SYNC:SyncDataOnEnter()
|
SYNC:SyncDataOnEnter()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user