Skip to content

Commit

Permalink
feat: qbx_vehiclepush get label on client
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-michalak authored May 12, 2024
1 parent d5c59f1 commit d801647
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions qbx_vehiclepush/client.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
CreateThread(function()
local config = lib.loadJson('qbx_vehiclepush.config')
local pushLabel = lib.callback.await('qbx_vehiclepush:server:getLabel', false, 'actions.push_vehicle')

while true do
Wait(1000)
Expand All @@ -18,7 +17,7 @@ CreateThread(function()
while true do
Wait(0)

qbx.drawText3d({ text = pushLabel, coords = vehicleCoords })
qbx.drawText3d({ text = locale('actions.push_vehicle'), coords = vehicleCoords })

if IsControlPressed(0, 21)
and not IsEntityAttachedToEntity(cache.ped, vehicle)
Expand Down
3 changes: 0 additions & 3 deletions qbx_vehiclepush/server.lua

This file was deleted.

0 comments on commit d801647

Please sign in to comment.