Jump to content

setAccountData (minus a value)


myonlake

Recommended Posts

Hello guys,

I am doing a little script that removes a value from the saved value. For example, I have saved 1000 dollars on my account, I want to delete one dollar by setAccountData, how is it made. I have tried to do a - 1, but it seems to not be working.

setAccountData(playerAccount, "dollars" - 1, cash) 
 

Well, it does an error: attempt to perform arithmetic on a string value

I know some of you are willing to help, but I don't want to hear those annoying words like: "are you serious?".

I am not perfect, especially because I am tired right now.

EDIT:

By the way, can you give me any kind of functions/events I should use to make a one specific car to be locked. Not all of the cars or all of the same ID cars, I want a specific one car to be locked, should I use setElementData on a spawned car?

Thanks

Edited by myonlake
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...