jacobwi / new_banking

Banking system compatibile with ESX framework
GNU Lesser General Public License v3.0
9 stars 11 forks source link

ATM Blips #13

Open ItayKisous opened 4 years ago

ItayKisous commented 4 years ago

Hey, is there a way to enable blips for the ATMs?

MonoChirito commented 4 years ago

yeah, its really easy, just go to your client lua and edit with notepad++. got to the park where it says Citizen.CreateThread(function() if showblips then for k,v in ipairs(banks)do local blip = AddBlipForCoord(v.x, v.y, v.z) SetBlipSprite(blip, v.id) SetBlipScale(blip, 1.0) SetBlipAsShortRange(blip, true) if v.principal ~= nil and v.principal then SetBlipColour(blip, 77) end BeginTextCommandSetBlipName("STRING") AddTextComponentString(tostring(v.name)) EndTextCommandSetBlipName(blip) end end end)

and replace with

Citizen.CreateThread(function() if showblips then for k,v in ipairs(atms)do local blip = AddBlipForCoord(v.x, v.y, v.z) SetBlipSprite(blip, v.id) SetBlipScale(blip, 0.6) SetBlipColour(blip, 2) SetBlipAsShortRange(blip, true) if v.principal ~= nil and v.principal then SetBlipColour(blip, 77) end BeginTextCommandSetBlipName("STRING") AddTextComponentString(tostring(v.name)) EndTextCommandSetBlipName(blip) end end end)

Citizen.CreateThread(function() if showblips then for k,v in ipairs(banks)do local blip = AddBlipForCoord(v.x, v.y, v.z) SetBlipSprite(blip, v.id) SetBlipScale(blip, 1.0) SetBlipAsShortRange(blip, true) if v.principal ~= nil and v.principal then SetBlipColour(blip, 77) end BeginTextCommandSetBlipName("STRING") AddTextComponentString(tostring(v.name)) EndTextCommandSetBlipName(blip) end end end)

thats it, hopei could help :)