Sign in to follow this  

Per-Player variables

Recommended Posts


I have next question: How to create variables for one player? Like PVars in SA-MP, function which you can use to save some data for player. Thanks for help top_gradient.jpg

Edited by Guest

Share this post

Link to post

I don't know but where no functions like SetPVarInt(playerid,"Name",Value); 100% because Pawn and LUA its so different.

Where are functions and eventHandlers

Share this post

Link to post

So I must use tables? Like:

local pVehicle = { } 
pVehicle[thePlayer] = vehicle 


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

local pVehicle 
pVehicle = vehicle 

Edited by Guest

Share this post

Link to post


setElementData(thePlayer,"Money",value) - for example 

Share this post

Link to post

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?


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


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

Share this post

Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.