Skip to content

esx_atm

Link: https://github.com/esx-framework/esx-legacy/tree/main/%5Besx_addons%5D/esx_atm

Open esx_atm/client/main.lua, find line 28, it should say -- Create blips.

-- Create blips
Citizen.CreateThread(function()
    if not Config.EnableBlips then return end

    for _, ATMLocation in pairs(Config.ATMLocations) do
        ATMLocation.blip = AddBlipForCoord(ATMLocation.x, ATMLocation.y, ATMLocation.z - Config.ZDiff)
        SetBlipSprite(ATMLocation.blip, Config.BlipSprite)
        SetBlipDisplay(ATMLocation.blip, 4)
        SetBlipScale(ATMLocation.blip, 0.9)
        SetBlipColour(ATMLocation.blip, 2)
        SetBlipAsShortRange(ATMLocation.blip, true)
        BeginTextCommandSetBlipName("STRING")
        AddTextComponentString(_U('atm_blip'))
        EndTextCommandSetBlipName(ATMLocation.blip)
    end
end)

Replace the code with the following.

Citizen.CreateThread(function()
    if not Config.EnableBlips then return end

    for _, ATMLocation in pairs(Config.ATMLocations) do
        exports.bzn_blip_handler:RegisterBlip('atm-bank', 'ATM', vector2(ATMLocation.x, ATMLocation.y), Config.BlipSprite, 2)
    end
end)

You can either register groups in each script or do it in bzn_blip_handler/client/register_groups.lua - i would personally use the last option, so every registerd group is located in the same place.