What's new

Question qb-target can't

gataurp

Gold Elite
Joined
Jan 27, 2022
Messages
90
Reaction score
43
Points
176
Location
indonesia
qb-target can't be directed to atm

GG.png
 

kaz189

Gold Elite
Joined
Aug 23, 2021
Messages
112
Reaction score
413
Points
316
Location
New Zealand
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.
 

Tifa

Member
Joined
Jan 16, 2023
Messages
5
Reaction score
0
Points
156
Location
Canada
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.
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",
 

spartant101

Member
Joined
May 17, 2023
Messages
2
Reaction score
0
Points
86
Location
USA
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",
Where exactly would I put this whole thing?
 
Top