Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Well, that's the rotation, I don't know why it doesn't work.
  2. ------------------------------------------------------------------------------------ -- PROJECT: N/A -- DEVELOPERS: Sebbe -- RIGHTS: All rights reserved by developers ------------------------------------------------------------------------------------ dataToFindPlayersJob = "gang" vehicles = { {Roles = "FBI", vehicles = {427, 596}, x = 1592.8000488281, y = -1606.9000244141, z = 13.39999961853, rotation = 25, r = 250, g = 250, b = 250, vehR = 0, vehG = 0, vehB = 255}, {Roles = "FBI", vehicles = {427, 596}, x = 1592.8000488281, y = -1606.9000244141, z = 13.39999961853, rotation = 25, r = 250, g = 250, b = 250, vehR = 0, vehG = 0, vehB = 255}, } There, you can read "ROTATION".
  3. for object, _ in pairs ( objectsSpawned [ client ] ) do destroyElement ( object ) objectsSpawned [ client ] [ object ] = nil end That should do it.
  4. I already told you, set the rotation value.
  5. Well, now you must add a new value to your table, then set it as element data when the marker is created ( like the roles ), then you compare the new value with the player team. getPlayerTeam getTeamName
  6. I don't know how much, change it until it suits your needs. Server side script file.
  7. On the script where it creates the spawners, there you have to edit it. For your other problem, change "rotation" value.
  8. I don't know when you want to execute it, is your script.
  9. getAccount setAccountData
  10. No, you'll have to add another value to the table, then edit the script to use that value.
  11. For that you'll have to edit the script to add a new value.
  12. You aren't executing the function: "thesala" at all.
  13. -- server side: local objectsSpawned = { } function createWorldObject ( thePlayer, objectID, objectPosX, objectPosY, objectPosZ, objectRotX, objectRotY, objectRotZ ) obj = createObject ( objectID, objectPosX, objectPosY, objectPosZ, objectRotX, objectRotY, objectRotZ ) setElementDoubleSided ( obj, true ) if ( not objectsSpawned [ client ] ) then objectsSpawned [ client ] = { } end objectsSpawned [ client ] [ obj ] = true end addEvent ( "spawnConstruction", true ) addEventHandler ( "spawnConstruction", root, createWorldObject ) addEvent ( 'onDestroyElement', true ) addEventHandler ( 'onDestroyElement', root, function ( obj ) if ( objectsSpawned [ client ] ) then if ( objectsSpawned [ client ] [ obj ] ) then destroyElement ( obj ) objectsSpawned [ client ] [ obj ] = nil end end end ) -- client side: function clickObject ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if ( clickedElement and isElement ( clickedElement ) and getElementType ( clickedElement ) == "object" ) then guiSetVisible ( mainGUI, true ) removeEventHandler ( "onClientClick", root, clickObject ) triggerServerEvent ( 'onDestroyElement', localPlayer, clickedElement ) end end
  14. guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], id[2], false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], name[1], false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], money[3], false, false) There's the problem, you are using tables that don't exist. Use this: guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], value[2], false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], value[1], false, false) guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], value[3], false, false)
  15. ------------------------------------------------------------------------------------ -- PROJECT: N/A -- DEVELOPERS: Sebbe -- RIGHTS: All rights reserved by developers ------------------------------------------------------------------------------------ dataToFindPlayersJob = "gang" vehicles = { {Roles = "FBI", vehicles = {427, 596}, x = 1592.8000488281, y = -1606.9000244141, z = 13.39999961853, rotation = 25, r = 250, g = 250, b = 250, vehR = 0, vehG = 0, vehB = 255}, {Roles = "FBI", vehicles = {427, 596}, x = 1592.8000488281, y = -1606.9000244141, z = 13.39999961853, rotation = 25, r = 250, g = 250, b = 250, vehR = 0, vehG = 0, vehB = 255}, }
  16. "race/race_server.lua". g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true)
  17. You could use element data.
  18. Castillo

    Gang spawn

    No, there isn't any.
  19. Maybe he forgot to add the fonts to the meta.xml of the guieditor.
  20. @illestiraqi: Make sure you have the latest gang system, because older ones doesn't have the exported function: getPlayerGang .
×
×
  • Create New...