[RELEASE] esx_robcashregister [ESX]

getting this error, trying to navigate

Also where would be the place to place that command for pressing E to rob?

if Player.job.name == 'police' then
   pcountPolice = pcountPolice + 3
end

So you are saying that 1 cop work as much as 3 cops? xD just kidding man I’m just pointing out this error

You can just put on client.lua, and it will work

RegisterKeyMapping(‘stealcashregister’, ‘steal cash register’, ‘keyboard’, ‘e’)

2 Likes

much love, i assume anywhere would work? or perhaps in the function?

Good job, im glad the FiveM Community growing up

1 Like

yes anywere you like :smiley:

1 Like

getting an error
more to error but in summary

error prasing script @esx_robcashregister/client.lua unexpected symbol near '<\226>

The client lua do not have 226 lines so have you modd the script ?

send so i can we can se the code :slight_smile:

client.lua (4.6 KB)

havent tried changing anything, just tried to get it to work. Had that issue above i posted, so kinda been unsure. Just added that code you told me, and that sprung up.

i can see that you have some errors in the

RegisterKeyMapping(‘stealcashregister’, ‘steal cash register’, ‘keyboard’, ‘e’)

needs to be this

RegisterKeyMapping(‘stealcashregister’, ‘steal cash register’, ‘keyboard’, ‘e’)

after this you change keybinds in settings under the FiveM tab

1 Like

client (1).lua (4.5 KB)

try this one

rename it to client

1 Like

trying now, however i copy/pasta’d so unsure what i might have done wrong. Really appreciate you taking the time to answer back and help navigate

ya having no luck, nothing happens pressing e or the command and nothing pops up, no error either

Try change key in keybinds in settings under FiveM tab

1 Like

Btw do you have the WEAPON_CROWBAR as a item in the data base `?

the server code says it needs to be as an item and not a weapon

1 Like

ya i got weapons as items for sure.

1 Like

would it need caps?

yes
needs to be caps

WEAPON_CROWBAR

1 Like