#Help the blips

1 messages · Page 1 of 1 (latest)

amber lantern
past tendon
#

@amber lantern Did you fix it already?

replace this to job.lua line 160 in qb-policejob

`function MenuGarage(currentSelection)
local vehicleMenu = {
{
header = Lang:t('menu.garage_title'),
isMenuHeader = true
}
}

local playerGrade = QBCore.Functions.GetPlayerData().job.grade.level
for grade = 0, playerGrade do
    local authorizedVehicles = Config.AuthorizedVehicles[grade]
    if authorizedVehicles then
        for veh, label in pairs(authorizedVehicles) do
            vehicleMenu[#vehicleMenu + 1] = {
                header = label,
                txt = '',
                params = {
                    event = 'police:client:TakeOutVehicle',
                    args = {
                        vehicle = veh,
                        currentSelection = currentSelection
                    }
                }
            }
        end
    end
end

vehicleMenu[#vehicleMenu + 1] = {
    header = Lang:t('menu.close'),
    txt = '',
    params = {
        event = 'qb-menu:client:closeMenu'
    }
}

exports['qb-menu']:openMenu(vehicleMenu)

-- Marker weergeven en verbergen op afstand
local v = Config.Locations['vehicle'][currentSelection]
if v then
    CreateThread(function()
        local showMarker = true
        while showMarker do
            Wait(0)
            local playerCoords = GetEntityCoords(PlayerPedId())
            local distance = #(playerCoords - vector3(v.x, v.y, v.z))
            if distance > 20.0 then -- Verberg de marker op afstand
                showMarker = false
            else
                DrawMarker(2, v.x, v.y, v.z + 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3, 0.3, 0.3, 0, 255, 0, 150, false, true, 2, nil, nil, false)
            end
        end
    end)
end

end`

hushed ice
#

Where i put this?

static wedge
hushed ice
#

And after?

#

i cant see

#

is same

static wedge
#

did you do what he said? and replace the code? And restarted the script?

hushed ice
#

Yes

static wedge
#

any errors?

hushed ice
#

Nope

#

Oh

#

I dont want this

static wedge
#

thats what you asked for

hushed ice
#

I want to see the garage menu in blip, not open the menu and then see

static wedge
#

you can change the green icon to something you like

#

wait hold on, You need to explain more

hushed ice
#

Yes, im beginner

#

sorry

#

Like

static wedge
#

its fine, Just explain what you want todo abit more

hushed ice
#

Like this

#

you can see blip and open the menu

#

no after

static wedge
#

its a different menu script

hushed ice
#

I want the same menu, I just want the blip to appear there as soon as you are near the garage

static wedge
#

it should

#

walk away

#

then come back the blip should show before menu

hushed ice
#

im restard

#

wait

#

where is blip

#

yo usee?

#

the blip show after menu

static wedge
#

should show before

#

the menu

hushed ice
#

Yeah..

#

I dont know how..

#

They just show after of menu

#

If they can't, can you, like, place an NPC and then click and the menu appears?

past tendon
#

You asked a marker like Go postal. This is something else what you are showing.. 😁

hushed ice
#

I want the same thing as GO postal, in the police, and I also like that instead of clicking ALT it could be on E