From 323d12ad311a50d6c9baa54a1d762235b72f623a Mon Sep 17 00:00:00 2001 From: Mustache Dom <123716453+Mustachedom@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:44:48 -0700 Subject: [PATCH] Update oxyruns.lua --- client/oxyruns.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/oxyruns.lua b/client/oxyruns.lua index 975d788..715ebbb 100644 --- a/client/oxyruns.lua +++ b/client/oxyruns.lua @@ -52,13 +52,10 @@ RegisterNetEvent("md-drugs:client:getoxylocationroute", function() AddTextComponentSubstringPlayerName("drug Meet") EndTextCommandSetBlipName(deliveryBlip) SetBlipRoute(deliveryBlip, true) - local current = "g_m_y_famdnf_01" - lib.requestModel(current, Config.RequestModelTime) + local current = "g_m_y_famdnf_01" + lib.requestModel(current, Config.RequestModelTime) local oxybuyer = CreatePed(0, current,CurrentLocation.x,CurrentLocation.y,CurrentLocation.z-1, CurrentLocation.w, false, false) - --SetEntityHeading(oxybuyer, 180) - --FreezeEntityPosition(oxybuyer, true) - --SetEntityInvincible(oxybuyer, true) - Freeze(oxybuyer, true, CurrentLocation.w) + Freeze(oxybuyer, true, CurrentLocation.w) repeat Wait(1000) until #(GetEntityCoords(PlayerPedId()) - vector3(CurrentLocation.x,CurrentLocation.y,CurrentLocation.z)) < 5.0