Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. #Paper

    Gui Ratio

    The event doesn't trigger: --Client: function triggerFunc (theButton) if theButton == GUIEditor_Radio[1] then triggerServerEvent(getLocalPlayer(), "onColorSet", "Red", getLocalPlayer()) elseif theButton == GUIEditor_Radio[2] then triggerServerEvent(getLocalPlayer(), "onColorSet", "Yellow", getLocalPlayer()) elseif theButton == GUIEditor_Radio[3] then triggerServerEvent(getLocalPlayer(), "onColorSet", "Black", getLocalPlayer()) elseif theButton == GUIEditor_Radio[4] then triggerServerEvent(getLocalPlayer(), "onColorSet", "White", getLocalPlayer()) elseif theButton == GUIEditor_Radio[5] then triggerServerEvent(getLocalPlayer(), "onColorSet", "Purple", getLocalPlayer()) elseif theButton == GUIEditor_Radio[6] then triggerServerEvent(getLocalPlayer(), "onColorSet", "Orange", getLocalPlayer()) elseif theButton == GUIEditor_Radio[7] then triggerServerEvent(getLocalPlayer(), "onColorSet", "Blue", getLocalPlayer()) end end addEventHandler("onClientGUIClick", GUIEditor_Radio[1], triggerFunc) addEventHandler("onClientGUIClick", GUIEditor_Radio[2], triggerFunc) addEventHandler("onClientGUIClick", GUIEditor_Radio[3], triggerFunc) addEventHandler("onClientGUIClick", GUIEditor_Radio[4], triggerFunc) addEventHandler("onClientGUIClick", GUIEditor_Radio[5], triggerFunc) addEventHandler("onClientGUIClick", GUIEditor_Radio[6], triggerFunc) addEventHandler("onClientGUIClick", GUIEditor_Radio[7], triggerFunc) --Server: addEvent("onColorSet", true) function changeVehicleColor(theColor, thePlayer) local pVhe = getPedOccupiedVehicle(thePlayer) if pVhe then if theColor == "Red" then setVehicleHeadLightColor ( pVhe, 255, 0, 0 ) elseif theColor == "Yellow" then setVehicleHeadLightColor ( pVhe, 255, 255, 0 ) elseif theColor == "Black" then setVehicleHeadLightColor ( pVhe, 0, 0, 0 ) elseif theColor == "White" then setVehicleHeadLightColor ( pVhe, 255, 255, 255 ) elseif theColor == "Purple" then setVehicleHeadLightColor ( pVhe, 160, 32, 240 ) elseif theColor == "Orange" then setVehicleHeadLightColor ( pVhe, 255, 165, 0 ) elseif theColor == "Blue" then setVehicleHeadLightColor ( pVhe, 0, 0, 255 ) end end end addEventHandler("onColorSet", getRootElement(), changeVehicleColor)
  2. I just want to know where's it solved...
  3. It's works, but it doesn't works just whit player's name...
  4. and here there is the problem solved?
  5. Sorry but the problem is already solved When?
  6. Mhhh maybe i know the error: There is an error in the "onMarkerHit", the maker don't be getted just in the setted coords: in the x and y setteds yes, but not just in the "Z" coord setted, but in all Z (vertical)... Idk if somone get me
  7. you must insert that code whitout the ""
  8. you must open the file "config.xml" and follow the instructions
  9. can you also make Legalsystem script ok... In your server, fro drive need a license?
  10. I can make a faction system for 10€ ok?- What kind of faction script. : ) A faction script... You say to me what factions do you want and i make a script...
  11. type /debugscript 3 and post the errors...
  12. #Paper

    Ping

    https://wiki.multitheftauto.com/wiki/GetPlayerPing Omg, i don't know that function, sorry for my useless post T_T
  13. #Paper

    Ping

    How i can get the ping of a player?
  14. function set1( ) selectedRow, selectedCol = guiGridListGetSelectedItem( mapGridList ) gridMapName = guiGridListGetItemText( mapGridList, selectedRow, selectedCol ) guiSetText( mapNameEdit, gridMapName ) end addEventHandler( "onClientGUIClick", mapGridList, set1 ) function onGuiClick (button, state, absoluteX, absoluteY) if (button == buyButton) then map = guiGetText ( mapNameEdit ) triggerServerEvent ("buyMap", getLocalPlayer(), map) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) Server code : function NextMap(map) g_ForcedNextMap = map--I use that metod end addEvent("buyMap", true) addEventHandler("buyMap", getRootElement(),NextMap)
  15. #Paper

    Alpha Set :D

    Ty P.S: Have you skype?
  16. I can make a faction system for 10€ ok?-
  17. #Paper

    Alpha Set :D

    ye i understand and i fixxed it, but, why i can't set the time of the timer under "50"?
×
×
  • Create New...