steadyfi Posted January 18, 2015 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 My Work: OpenTeams | DayZ Admin Panel | vAuth Must-Have Library: MTA Lua Async ApocalipZ Owner coming back soon!
MTA Team botder Posted January 18, 2015 MTA Team Posted January 18, 2015 Are those floats/booleans same for each player? Why do not simply use the trigger_Event functions? GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
steadyfi Posted January 18, 2015 Author 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 My Work: OpenTeams | DayZ Admin Panel | vAuth Must-Have Library: MTA Lua Async ApocalipZ Owner coming back soon!
steadyfi Posted January 18, 2015 Author Posted January 18, 2015 Help ? My Work: OpenTeams | DayZ Admin Panel | vAuth Must-Have Library: MTA Lua Async ApocalipZ Owner coming back soon!
MTA Team botder Posted January 18, 2015 MTA Team 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 }) GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
steadyfi Posted January 18, 2015 Author 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 My Work: OpenTeams | DayZ Admin Panel | vAuth Must-Have Library: MTA Lua Async ApocalipZ Owner coming back soon!
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