Jump to content

Reggae

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Reggae

  1. addEventHandler('onResourceStart',resourceRoot, function() marker = createMarker(-23.2441,-54.8056,1003.5468, 'cylinder', 1.0, 255, 255, 255, 255) setElementInterior(markerr, 6) end) Not Worked ?
  2. ,But when I type / god he is invisible only when I type / god again he goes invisible,What do need to edit when typing god again he normal? I want to enter / god he invisible, and when typing is visible again. function toggleInvis ( thePlayer ) if getElementAlpha( thePlayer ) == 0 then setElementAlpha ( thePlayer, 130) else setElementAlpha ( thePlayer, 0 ) end end addCommandHandler ( "god", toggleInvis )
  3. I want it so a player click a button it is set to the team "Trucker" my client : addEventHandler('onClientGUIClick',GUIEditor.staticimage[2],setSkin,false) function setSkin ( ) guiSetVisible (GUIEditor.staticimage[1], false) showCursor (false) end addEvent("getJob", true) addEventHandler("getJob",root,setSkin) Serverside: function createSAPDTeam () SAPDteam = createTeam ("Caminhoneiro", 100, 149, 237) end addEventHandler ("onResourceStart", resourceRoot, createSAPDTeam) function joinSAPD(id) setPlayerTeam ( hitElement, Caminhoneiro ) end addEvent("getJob", true) addEventHandler("getJob",root,joinSAPD) Script Not Worked Help !!
  4. I want that when a player uses the command / gritarvasco Just who is going to listen to 30 meters. the command is working all over the server is listening, I want only those who listen closely this. tried using SetMaxDistance but all the server is listening What do I do? My client: addEvent("playMyMusic",true) addEventHandler("playMyMusic", getRootElement(), function() local sound = playSound("gritos/vasco.mp3",false) setSoundVolume(sound, 1.0) setSoundMaxDistance( sound, 30 ) end) Server: function PlayMusic() triggerClientEvent(getRootElement(), "playMyMusic", getRootElement()) end addCommandHandler("gritarvasco", PlayMusic)
×
×
  • Create New...