Jump to content

Passing variables problem


steadyfi

Recommended Posts

  • MTA Team

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
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 :D ! Now I can continue my gamemode :)

SOLVED

Link to comment

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...