Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
fix(client): move garageid to inside
Browse files Browse the repository at this point in the history
  • Loading branch information
renzuzu committed Mar 7, 2023
1 parent f5e5632 commit 4d2d92d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/cl_wrapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ local targetid = nil
local textactive = false
AddTarget = function(data)
function onEnter(self)
tid = data.id
TID(data.id)
local model = `a_m_m_skater_01`
lib.requestModel(model)
local ped = CreatePed(4,model,self.coords.x,self.coords.y,self.coords.z,0.0,false,true)
Expand Down Expand Up @@ -103,6 +101,10 @@ AddTarget = function(data)
if storing then
OxlibTextUi('[E] Store Vehicle',true)
end
if self.distance < 5 then
tid = data.id
TID(data.id)
end
while cache.vehicle and self.distance < 5 do
Wait(1)
DrawMarker(1, coord.x, coord.y, coord.z-0.4, 0.0, 0.0, 0.0, 0.0, 180.0, 0.0, 1.0, 1.0, 1.0, 0, 255, 51, 50, false, true, 2, nil, nil, false)
Expand Down

0 comments on commit 4d2d92d

Please sign in to comment.