myonlake Posted November 8, 2011 Share Posted November 8, 2011 (edited) Hello, I am asking that if I use this function, math.random, and make it like this, for an example: local id = math.random(0,1000) setElementData(player, "example", id) setElementData(vehicle, "example", id) Does it put them both the same ID or just different? Edited May 30, 2019 by myonlake Link to comment
NotAvailable Posted November 8, 2011 Share Posted November 8, 2011 "This function stores element data under a certain key, attached to an element. Element data set using this is then synced with all clients or the server. As such you should avoid passing data that is not able to be synced into this function (i.e. xmlnodes, acls, aclgroups etc.) Server-created elements are able to be synced." - Adapted from: https://wiki.multitheftauto.com/wiki/SetElementData Link to comment
karlis Posted November 8, 2011 Share Posted November 8, 2011 obviously one variable will store one value. its not storing the function itself ofc. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now