From 5b2e7814df48cbfb586c0c5af0cbd2528a969d4e Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:49:21 -0700 Subject: [PATCH] Update oxyruns.lua --- client/oxyruns.lua | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/client/oxyruns.lua b/client/oxyruns.lua index b3b903f..ba76129 100644 --- a/client/oxyruns.lua +++ b/client/oxyruns.lua @@ -47,7 +47,24 @@ RegisterNetEvent("md-drugs:Client:getoxylocation", function() end) CreateThread(function() - + if Config.oxtarget then + exports.ox_target:addBoxZone({ -- 963.37, -2122.95, 31.47 + coords = Config.Payfortruck, + size = vec3(2,2,2), + debugPoly = false, + rotation = 45, + options = { + { + type = "client", + event = "md-drugs:client:getoxytruck", + icon = "fas fa-sign-in-alt", + label = "Pay For Truck", + + + }, + }, + }) + else exports['qb-target']:AddBoxZone("getoxylocation",Config.Payfortruck,1.5, 1.75, { -- 963.37, -2122.95, 31.47 name = "getoxylocation", heading = 11.0, @@ -69,9 +86,8 @@ CreateThread(function() distance = 2.5 }) - +end end) - RegisterNetEvent("md-drugs:client:getoxylocationroute") AddEventHandler("md-drugs:client:getoxylocationroute", function() Wait(100)