Jump to content

Per-Player variables


Minokon

Recommended Posts

So I must use tables? Like:

local pVehicle = { } 
pVehicle[thePlayer] = vehicle 
  

top_gradient.jpg

Other question: In client-side script I don't have to use tables? Only

local pVehicle 
pVehicle = vehicle 

Edited by Guest
Link to comment

Thank you!

So in client-side scripts I have to use:

setElementData(getLocalPlayer(), "Money", value) 

And I can read this in server-side scripts?

And other, maybe stupid question: saved data with that function is avaiable to read in all resources?

P.S

I'm sorry because I'm some green in Lua :)

@DOWN

This isn't problem :D I can't understand some words, and google translate can't help too. Here language is some simplier for me :) Sorry for problem, which I creating.

Edited by Guest
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...