Jump to content

changin elementname or smth


JanriKallas

Recommended Posts

Lets say theres a three markers

MechanicMarker

MedicMarker

PoliceMarker

They are all invisible.

Then function makes one of the Marker visible that player chose from clientside.

So to not make three different function for policemarker, medicmarker, mechanicmarker

  
Function () --clientside 
duty = GuigetText (bla1) 
TriggerEvent ("serverfunc", localplayer, duty 
End 
  
Function (player,duty) --duty is "Mechanic" / "Medic" / "Police" 
setElementVisibleTo (player, MARKERNAME) 
end 
  

I alrady tried: (tostring(duty)Marker) and tostring (duty)..Marker

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...