diff --git a/qbx_vehiclepush/client.lua b/qbx_vehiclepush/client.lua index 1909722..766419d 100644 --- a/qbx_vehiclepush/client.lua +++ b/qbx_vehiclepush/client.lua @@ -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) @@ -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) diff --git a/qbx_vehiclepush/server.lua b/qbx_vehiclepush/server.lua deleted file mode 100644 index 5690cce..0000000 --- a/qbx_vehiclepush/server.lua +++ /dev/null @@ -1,3 +0,0 @@ -lib.callback.register('qbx_vehiclepush:server:getLabel', function (_, key) - return locale(key) -end)