Skip to content

Commit

Permalink
fix(client/vehiclepush): push vehicle from anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthww authored Jan 9, 2024
1 parent fef734a commit 67ffedb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/vehiclepush.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ CreateThread(function()
local sleep
while true do
sleep = 250
if Vehicle.Vehicle then
local pos = GetEntityCoords(cache.ped)
if Vehicle.Vehicle and #(pos - Vehicle.Coords) < 3.5 then
local vehClass = GetVehicleClass(Vehicle.Vehicle)
sleep = 0

Expand Down

0 comments on commit 67ffedb

Please sign in to comment.