mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
feat(sync): only trigger sync on enter if passenger view allowed
This commit is contained in:
@@ -111,7 +111,7 @@ end )
|
||||
Citizen.CreateThread( function()
|
||||
while ( true ) do
|
||||
-- The sync trigger should only start when the player is getting into a vehicle
|
||||
if ( IsPedGettingIntoAVehicle( PLY.ped ) ) then
|
||||
if ( IsPedGettingIntoAVehicle( PLY.ped ) and RADAR:IsPassengerViewAllowed() ) then
|
||||
-- Get the vehicle the player is entering
|
||||
local vehEntering = GetVehiclePedIsEntering( PLY.ped )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user