Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Model ID must be wrong.
  2. Castillo

    Car color

    Hmn then why all cars have same color ? Maybe you have another script setting the color aswell. Try this: addEventHandler ( "onVehicleEnter", root, function ( ) setTimer ( setVehicleColor, 1000, 1, source, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) end )
  3. Castillo

    SQL Tables

    The MySQL server details must be wrong.
  4. Everything seems fine but this line: triggerServerEvent ( "onClientGUIClick", button, heal) which makes absolutely no sense.
  5. You're talking about draw distance, you can set the draw distance of everything with this function: setFarClipDistance
  6. Castillo

    /me problem

    You're wrong, Vector, the onPlayerChat event has a message type argument, which specifies which chat is being used, 1 = "/me".
  7. With what right would you upload it? this is a script I made long ago for my server, which then another staff posted as a "tutorial" in the tutorials section. Bottom line, you can't upload it.
  8. function onResourceStart ( ) for _, jugador in ipairs ( getElementsByType ( "player" ) ) do local team = getPlayerTeam ( jugador ) if ( team ) then r, g, b = getTeamColor ( team ) else r, g, b = getPlayerNametagColor ( jugador ) end Blis = createBlipAttachedTo ( jugador, 0, 2, r, g, b ) end end addEventHandler ( "onResourceStart", resourceRoot, onResourceStart )
  9. -- server side: triggerClientEvent -- client side: addEvent addEventHandler dxDrawText onClientRender
  10. No, it doesn't make any sense.
  11. When you add the columns, you can set the priority.
  12. Well, I meant it can be done, forget the "I think" part.
  13. No, I just helped him with it.
  14. Is the one I posted. Post your meta.xml content.
  15. The script does work, I tested it, I pressed 'H' and I got the hockey mask, I pressed it again and it dissapeard. You must have the CJ skin. Also, remember that this script is SERVER SIDE.
  16. No, look, the index is for the category, 15 = Glasses, 16 = Hats.
  17. I found your problem, you are using the wrong index, is 16 not 15. local gasMaskActivation = function ( player ) local texture, model = getPedClothes ( player, 16 ) if not ( texture == "hockey" and model == "hockeymask" ) then addPedClothes ( player, "hockey", "hockeymask", 16 ) else removePedClothes ( player, 16 ) end end addEventHandler ( "onPlayerJoin",root, function ( ) bindKey ( source, "h", "down", gasMaskActivation ) end ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "h", "down", gasMaskActivation ) end end ) Works perfect ( tested ).
  18. I'm not going to do that for you aswell.
  19. And how is that useful, Sensacion? this is MTA, not SAMP.
  20. Castillo

    Car color

    Each vehicle will have a random code with that, it won't use the same one for all of them.
  21. You are logging in, right? because it binds it on login.
  22. Castillo

    FIXED

    Then it may be your server, tried reinstalling it? changing version?
  23. outputKillMessage ( killed, wr,wg,wb,killer,kr,kg,kb,weapon,width,resource )
  24. You can set the default settings at the .lua scripts inside it.
×
×
  • Create New...