[ESX][Free] Advanced ATM

About

The script will go through the ATM models that are listed in the config file and see if there is one near you, if there is it will open the UI if there isn’t nothing will happen.

All the transactions (withdraws, deposits, transfers) you make are going to be saved in the database and you can see them inside of the ‘transactions’ page on the ATM.

Commands:

/atm - Open the ATM UI when near any ATM
/atmclose - If you ever get stuck in the UI you can type in atmclose in the console (F8) and it should close it

As of version 1.1.0 you can now toggle E in the config, which enables or disables the ability to press E next to an ATM to open it.

Tested on ESX version V1 Final - I’m not sure if it’s going to work on older versions, most likely not. You would have to change the way the identifiers and money functions are in the server script, shouldn’t be too difficult but I will offer no support in it.

Requirements

mythic_progbar
luke_textui

Download

Video Showcase

GitHub Repository

Feel free to edit and change the script to your liking, it’s 100% open-source, however you MAY NOT claim it as your own.

If you run into any issues or have a feature request, open an issue on the repository.

9 Likes

can you make it openable with an key?

1 Like

Absolutely, you could register a key mapping and make the command execute when the button is pressed, I’m not planning on adding anything to the script anymore but you feel free to edit it yourself if you want!

This looks very good! You are on a role my friend :100:

Out of curiosity, at the moment we are using new_banking but feel this resource would be such an improvement!

However, not sure whether it would be compatible as plug and play with GCPhone app?

1 Like

Thanks mate,
I am not really sure about it working with GCPhone, it should as it just pulls the data from the database as far as I know, but don’t hold me on that.

1 Like

Will give it a go mate and let you know!

Then if anyone queries in future, you can let them know :100:

1 Like

Really like this script and the ability to see transaction logs is awesome.

Only issue with it, is that it cannot replace new_banking with the link to gcphone bank transfers.

The two scripts (new_banking and Advanced ATM) dont really go hand in hand either…

But again, really cool script and thank you for your release(s) :slight_smile: :100:

You would have to write your own code to link it with gcphone, it shouldn’t be too difficult but there’s nothing I can really do about it, sorry.

Looks amazing, beautiful script!

1 Like

No need to be sorry at all.

For us, it’s more so just pointing out the plug and play and compatibility of this script.

If anyone queries it in future, you know :+1:

1 Like

Great work!

1 Like

Good work thank you, I’ll be using it. I added this to my client.lua - credit Bazookan

    Citizen.Wait(100)
    while true do       
        local sleep = 1000
        local playerPed = PlayerPedId()
        local playerCoords = GetEntityCoords(playerPed)
        for i = 1, #Config.Models do
            local x = GetClosestObjectOfType(playerCoords, 1.0, GetHashKey(Config.Models[i]), false, false, false)
            local entity = nil
            if DoesEntityExist(x) then
                sleep  = 5
                entity = x
                atm   = GetEntityCoords(entity)
                drawText3D(atm.x, atm.y, atm.z + 2, 'Press [~g~E~s~] to use the ATM ~s~')  
                if IsControlJustReleased(0, 38) then
				TriggerEvent('luke_atm:ATMCheck')	
                end
                break
            else
                sleep = 1000
            end
        end
        Citizen.Wait(sleep)
    end
end)

drawText3D = function(x, y, z, text)
	local onScreen,_x,_y=World3dToScreen2d(x,y,z)
	local px,py,pz=table.unpack(GetGameplayCamCoords())  
	local scale = 0.50 
	if onScreen then
		SetTextScale(scale, scale)
		SetTextFont(4)
		SetTextProportional(1)
		SetTextColour(255, 255, 255, 215)
		SetTextOutline()
		SetTextEntry("STRING")
		SetTextCentre(1)
		AddTextComponentString(text)
        DrawText(_x,_y)
	end
end```
1 Like

I hope you guys enjoy the new update and design. Let me know if there are any issues :smiley:

1 Like

hey! o love the new update i do have a question, i see transactions in the db, but i dont see them in game

Do you get any errors in the console when you open the transactions page? Also what version of ESX are you using?

final, and no errors just a blank page

I pushed an update, read the latest release and let me know if the issue still persists.

Dear author, I installed “mythic_progbar” and your ATM, but it still doesn’t work. The error is as shown in the picture below:

I hope to be rescued by you.

It seems like you have the version with event triggers, did you get the one I linked?

I am from Taiwan, so I am not sure what you mean, but I have installed mythic_progbar required by ESX.