You must be using an older QB-ATMS. The "tryATM" function doesn't exist.I have qb target and it is working. If you want you can check this function out. Its from my qb target.
Config.TargetModels = {
["ATM"] = {
models = {
`prop_atm_01`,
`prop_atm_02`,
`prop_atm_03`,
`prop_fleeca_atm`,
},
options = {
{
type = "server",
event = "qb-atms:server:tryATM",
icon = "fab fa-cc-visa",
label = "Use ATM",
},
},
distance = 2.5,
},
Also would help if you had any errors.
Where exactly would I put this whole thing?You must be using an older QB-ATMS. The "tryATM" function doesn't exist.
this is the correct one:
RegisterNetEvent('qb-atms:server:enteratm',function ()
So event should read:
event = "qb-atms:server:enteratm",