Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. setPlayerName ( source , adat['IGName']) You are using 'source' there, but on your other functions you use 'player'.
  2. You can actually use the "modloader" resource which can be found at the MTA community, would make it a lot easier to replace vehicles/skins/weapons.
  3. The name of the resource is "armas" and you can find it on the MTA community.
  4. Don't take this the wrong way, but what is this exactly? all I see on the video is you driving different cars.
  5. You can also store the position on variables/table and update it when they move it with this event: https://wiki.multitheftauto.com/wiki/OnClientGUIMove
  6. You must trigger a server side event, then from the server side, trigger a client side event to play the sound.
  7. No, setElementData has nothing to do with this, you must use getPlayerTaem + getTeamName.
  8. Try this one: addEventHandler ( "onPlayerJoin", root, function ( ) local name = getPlayerName ( source ) if name:find ( "#%x%x%x%x%x%x" ) then setPlayerName ( source, name:gsub ( "#%x%x%x%x%x%x", "" ) ) end end ) addEventHandler ( "onPlayerChangeNick", root, function ( _, new ) if new:find ( "#%x%x%x%x%x%x" ) then cancelEvent ( ) end end ) P.S: Is a server side script.
  9. I don't really understand what do you mean, since you can't use spaces on your nick.
  10. Instead of that, you can just cancel the event if it has HEX codes in it.
  11. To do this, you'll have to store the data somewhere, I would say tables, then when he dies, get the reward amount from that table and give it to the killer.
  12. I explained how you had to do it on other topics, you obviously didn't care to read them.
  13. It can load DFF ( model ) files with no problems, you obviously did something wrong or the DFF file is corrupted.
  14. Is not a bug, as far as I know. Is simply not meant to be used for "ghost mode" ( I guess that's what you want it for ).
  15. That has nothing to do with changing it to team-based.
  16. Good work! I would have loved to have downloadFile function on this version, but well, we can't have everthing, can we? Still is an awesome job what you did there .
  17. There's your problem, you set the script as server side, but is client side ( type="client" ).
  18. You won't get help related to that here.
  19. Well, then you better start learning, because in this section we help you with your scripting problems, we don't make things for you.
  20. No, I won't do it for you, is a really simple thing.
  21. Define a table: -- Global ( outside any function ) local vehicles = { } -- Inside your creation function: vehicles [ client ] = createVehicle ( arguments ) Then you can check if exists a vehicle with: isElement
  22. Show us how you tried to do it.
×
×
  • Create New...