From cf830c59b0ff437b8e2b4ae9e8f4208e1ae92c86 Mon Sep 17 00:00:00 2001 From: aj <66404074+ihyajb@users.noreply.github.com> Date: Thu, 16 Jan 2025 00:14:14 -0500 Subject: [PATCH] feat(client): Show Selection on Map --- client/apartmentselect.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/client/apartmentselect.lua b/client/apartmentselect.lua index 59b4fbb..90221a6 100644 --- a/client/apartmentselect.lua +++ b/client/apartmentselect.lua @@ -186,14 +186,28 @@ local function inputConfirm(apartmentIndex) end local function InputHandler() + local coords = sharedConfig.apartmentOptions[currentButtonID].enter + local blip = AddBlipForCoord(coords.x, coords.y, coords.z) + SetBlipSprite(blip, 40) + ShowTickOnBlip(blip, true) + LockMinimapAngle(0.0) while true do + SetBigmapActive(true, false) + DisplayRadar(true) + SetRadarAsExteriorThisFrame() if IsControlJustReleased(0, 188) then currentButtonID -= 1 if currentButtonID < 1 then currentButtonID = #sharedConfig.apartmentOptions end + coords = sharedConfig.apartmentOptions[currentButtonID].enter + SetBlipCoords(blip, coords.x, coords.y, coords.z) + LockMinimapPosition(coords.x, coords.y) SetupScaleform() elseif IsControlJustReleased(0, 187) then currentButtonID += 1 if currentButtonID > #sharedConfig.apartmentOptions then currentButtonID = 1 end + coords = sharedConfig.apartmentOptions[currentButtonID].enter + SetBlipCoords(blip, coords.x, coords.y, coords.z) + LockMinimapPosition(coords.x, coords.y) SetupScaleform() elseif IsControlJustReleased(0, 191) then local alert = lib.alertDialog({ @@ -209,6 +223,11 @@ local function InputHandler() end Wait(0) end + SetBigmapActive(false, false) + DisplayRadar(false) + RemoveBlip(blip) + UnlockMinimapPosition() + UnlockMinimapAngle() StopCamera() end