steadyfi Posted January 18, 2015 Share Posted January 18, 2015 Hello. How can I pass Booleans and Floats to other sides ? I know that triggerClientEvent, triggerServerEvent, setElementData only work with elements. Is it possible or I just need to work more with each side ? Thanks Link to comment
MTA Team botder Posted January 18, 2015 MTA Team Share Posted January 18, 2015 Are those floats/booleans same for each player? Why do not simply use the trigger_Event functions? Link to comment
steadyfi Posted January 18, 2015 Author Share Posted January 18, 2015 (edited) Are those floats/booleans same for each player?Why do not simply use the trigger_Event functions? Some of them are global and some for each player, i just need to know how I can pass them. Edited January 18, 2015 by Guest Link to comment
MTA Team botder Posted January 18, 2015 MTA Team Share Posted January 18, 2015 You can actually use the resourceRoot to pass the data to each player. setElementData(resourceRoot, "info", { a = "yes", position = {200.5, 1205.2, -2} }) If you have to send data to a specific player, then you have to first send a signal clientside, that the client resource has started and then send the data back to the player triggerLatentClientEvent(player, "eventName", resourceRoot, { somedata = true }) Link to comment
steadyfi Posted January 18, 2015 Author Share Posted January 18, 2015 You can actually use the resourceRoot to pass the data to each player. setElementData(resourceRoot, "info", { a = "yes", position = {200.5, 1205.2, -2} }) If you have to send data to a specific player, then you have to first send a signal clientside, that the client resource has started and then send the data back to the player triggerLatentClientEvent(player, "eventName", resourceRoot, { somedata = true }) Thanks ! Now I can continue my gamemode SOLVED 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