osnapitzjamie Posted August 12, 2016 Share Posted August 12, 2016 I'm creating my own data system rather than using setElementData. I am trying to find a way to easily get the server to return info to the client. function setData(element, key, value) triggerServerEvent ( "setData", resourceRoot, element, key, value ) end function getData(element, key) end afaik triggerServerEvent returns true or false and can't return values. How would I go about doing this? Link to comment
Captain Cody Posted August 12, 2016 Share Posted August 12, 2016 trigger a serverEvent that triggers a Client Event. Link to comment
osnapitzjamie Posted August 12, 2016 Author Share Posted August 12, 2016 Nevermind. Using a data system is pointless for client side things. I'll use elementData for those. 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