Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. Just create vehicle and use Jesseunit's function. Everything in client side, so only client is able to see it.
  2. It looks like real CS, good work! Keep going.
  3. guiSetVisible - use this, when the resource is starting hide window.
  4. Look on google for SQLite Database manager - it is addon to explorers. You can create there databases, getting values etc.. It will create .sqlite file, which mta supports. In this addon you can do a column with auto_increment - for ids. Until I'm using it, everything is easier.
  5. addEvent is adding an event which you can trigger.
  6. I don't really now, what are you talking about, but yes.
  7. Source in this event is an element which have been destroyed, in this case vehicle.
  8. Well, but to do this event you need addEvent. For example _destroyElement = destroyElement addEvent ( "onElementDestroy", true ) function destroyElement ( element ) triggerEvent ( "onElementDestroy", root, element ) return _destroyElement ( element ) end
  9. In meta in resource with team event export function function="setPlayerTeam" type="server" /> And then in resource where are you setting team exports.resource_name:setPlayerTeam ( player, team )
  10. WhoAmI

    Cars

    What a brain dead guy...
  11. Well, you could do this that way, but you have to return function with real arguments return _ExportName ( message, player, r, g, b, isColored )
  12. I just created variable named real function. For example _setElementData = setElementData And then you return return _setElementData ( player, name, value )
  13. Well, firstly I created function which returns exactly the same think as setPlayerTeam does, and inside I triggered event that I created before.
  14. It is. In last topic I created for you one, but I think event onElementDataChange is global event. https://wiki.multitheftauto.com/wiki/On ... DataChange
  15. WhoAmI

    Cars

    We will help you If you would give us FULL ERRORS. FULL not trigger error, FULL. FULL error which is in console or /debugscript 3 in game. FULL FULL FULL!
  16. Couse if you use this 1st trigger it will trigger this event for ALL player on server, but if you use 2nd one it will do event only for player, who changed team.
  17. Well, you have to change that triggerClientEvent ( "destroyonleave", theNewTeam, theOldTeam, teamName ) to triggerClientEvent ( source, "destroyonleave", root )
  18. WhoAmI

    Cars

    MAN! We need FULL ERRORS.
  19. Oh, my bad, change to type="server"
  20. Ah, you must export function in meta (in this criminal job resource) >function="setPlayerTeam" type="client" />>
  21. resource_name to name of resource, where you got the couse i send you. There, were you got this "Criminal job".
  22. Instead of setPlayerTeam ( source, getTeamFromName ( "Civilian" ) ) And chagnder resource_name to name of resource, where you got this event.
  23. WhoAmI

    Cars

    We want to know what EXACTLY the errors are.
×
×
  • Create New...