You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client/client.lua
+16-5Lines changed: 16 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ if Config.Framework == 'ESX' then
2
2
ESX=exports["es_extended"]:getSharedObject()
3
3
elseifConfig.Framework=='QBCore' then
4
4
QBCore=exports['qb-core']:GetCoreObject()
5
-
elseifConfig.Framework=='Standalone' then
5
+
else
6
6
-- Add your own code here
7
7
end
8
8
@@ -118,7 +118,15 @@ CreateThread(function()
118
118
ifDoesEntityExist(vehicle) andnotGetVehicleDamaged(vehicle) andIsVehicleSeatFree(vehicle, -1) and (notIsPedInAnyVehicle(playerPed, false) or (IsPedInAnyVehicle(playerPed, false) andvehicle~=GetVehiclePedIsIn(playerPed, false))) then
119
119
localvehicleModel=GetEntityModel(vehicle)
120
120
121
-
if (IsThisModelAHeli(vehicleModel) orIsThisModelAPlane(vehicleModel)) then
121
+
ifIsThisModelACar(vehicleModel) then
122
+
localsteeringAngle=GetSteeringAngle(vehicle)
123
+
124
+
ifsteeringAngleandsteeringAngle~=GetVehicleSteeringAngle(vehicle) then
125
+
SetSteeringAngle(vehicle, steeringAngle)
126
+
end
127
+
end
128
+
129
+
ifIsThisModelAHeli(vehicleModel) orIsThisModelAPlane(vehicleModel) then
0 commit comments