-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
Well, that's the rotation, I don't know why it doesn't work.
-
------------------------------------------------------------------------------------ -- 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".
-
for object, _ in pairs ( objectsSpawned [ client ] ) do destroyElement ( object ) objectsSpawned [ client ] [ object ] = nil end That should do it.
-
I already told you, set the rotation value.
-
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
-
I don't know how much, change it until it suits your needs. Server side script file.
-
On the script where it creates the spawners, there you have to edit it. For your other problem, change "rotation" value.
-
I don't know when you want to execute it, is your script.
-
getAccount setAccountData
-
No, you'll have to add another value to the table, then edit the script to use that value.
-
For that you'll have to edit the script to add a new value.
-
You aren't executing the function: "thesala" at all.
-
-- 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
-
Remove the ")" at line 25.
-
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)
-
------------------------------------------------------------------------------------ -- 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}, }
-
"race/race_server.lua". g_RaceStartCountdown = Countdown.create(6, launchRace) g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) g_RaceStartCountdown:enableFade(true)
-
You could use element data.
-
You're welcome.
-
Maybe he forgot to add the fonts to the meta.xml of the guieditor.
-
@illestiraqi: Make sure you have the latest gang system, because older ones doesn't have the exported function: getPlayerGang .
