Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You could make a custom script which will lower tank health when player shoots a weapon. onClientPlayerWeaponFire -- The event for when a player fires a weapon. getElementType -- To check if the hit element is a vehicle. getElementModel -- To check if the hit vehicle is a "Rhino". setElementHealth -- To lower it's health.
  2. You can't remove a event of one resource from another, you could make a exported function to remove it.
  3. You can try to use this instead: https://community.multitheftauto.com/ind ... ls&id=4671 I never used it though.
  4. If you give/take/set money client side, it won't really do it, you must do it server side.
  5. This can be scripted, I don't see the point of making it as a suggestion.
  6. No hay que editar nada, cancelas el evento: onPlayerCommand con cancelEvent. addEventHandler ( "onPlayerCommand", root, function ( command ) if ( command == "nextmap" ) then cancelEvent ( ) end end )
  7. getPedBonePosition is a client side only function.
  8. Los 'rows' de grid list no son elementos, son numeros, no podes usar addEventHandler con ellos.
  9. gui = guiCreateStaticImage(0,0,1,1,"images/gui.png", true) showCursor(true) army = guiCreateStaticImage( 20, 20, 100, 70, "images/army.png", false, gui ) function army_() if (source == army) then setElementModel(getLocalPlayer(), 287) guiSetVisible(gui, false) showCursor(false) end end addEventHandler("onClientGUIClick", getRootElement(), army_) Try that, never call a function like a variable/table.
  10. Es como outputChatBox pero solo a la consola del servidor.
  11. Esa scoreboard parece la "dxscoreboard" sin las "settings" y agregado el "autor" ( que no sos vos ).
  12. If I'm right, he wants to edit that resource to allow it only to some vehicles.
  13. You could try this resource: https://community.multitheftauto.com/ind ... ls&id=3090
  14. Vehicle mod: https://community.multitheftauto.com/ind ... ls&id=5470 DONE
  15. Any debugscript errors?
  16. Since it's already possible to do it via scripting, I doubt it.
  17. 1: This does not make any sense: function locPlayer( ) local myPlayer = GUIEditor_Edit[1] ( ) outputChatBox ( getPlayerName ( myPlayer ).." is now being tracked!" ) createBlipAttachedTo ( myPlayer, [ 23, 2, 255, 0, 0, 255, 0, 99999.0] ) end 2: setElementVisibleTo is a server side only function, your script is client side.
  18. Maybe because you don't even have the command? where's: addCommandHandler?
  19. function turnOffBlipless Should be: function turnOffBlipless ( thePlayer )
  20. function turnOffBlipless Missing ( ) and the 'thePlayer' argument.
  21. You can use the other colors as well.
×
×
  • Create New...