
drk
Members-
Posts
1,607 -
Joined
-
Last visited
Everything posted by drk
-
And what the problem? just using "exports" it's much more easy.
-
I just tabulated your code correctly.
-
Show how you trigger the event.
-
First - Tabulate your code correctly: local myMarker = createMarker ( 1539.3, -1686.8, 13, 'cylinder', 2, 255, 225, 0, 150 ); addEvent ( 'vehicle', true ); addEventHandler ( 'vehicle', root, function ( uPlayer ) local nX, nY, nZ = getElementPosition ( uPlayer ); local uVehicle = createVehicle ( 470, 1539.3, -1686.8, 13 ); warpPedIntoVehicle ( uPlayer, uVehicle ); end ) addEventHandler ( 'onMarkerHit', root, function ( uPlayer ) if ( source == myMarker ) then triggerClientEvent ( uPlayer, 'openGUI', root ); end end ) Second - warpPedIntoVehicle is bugged. The problem isn't that, the script creates the vehicle, but he don't get spawned into vehicle.
-
Np And yes, C++ is amazing
-
You can at least show an example, Solidsnaka: text = guiCreateEdit ( 500, 500, 100, 70, '', false ); button = guiCreateButton ( 650, 500, 80, 80, 'Get', false ); addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == button ) then local text1 = guiGetText ( text ); local fText = xmlCreateFile ( 'test.xml', 'root' ); local child = xmlCreateChild ( fText, 'myText' ); xmlNodeSetValue ( child, tostring ( text1 ) ); xmlSaveFile ( fText ); end end ) This will create a edit and a button, when you press the button, it will get edit text, create a xml file with a 'root' node and create a new child 'myText' and set his text to edit text then save the file and end.
-
New forum / Bug Tracker / Community design
drk replied to drk's topic in Site/Forum/Discord/Mantis/Wiki related
He said that will be? -
I will not answer those "THINGS".
-
I gave him the code by PM already -.-
-
Time changed.. Before time wasn't the same.
-
local sGroup; call ( getResourceFromName ( 'scoreboard' ), 'addScoreboardColumn', 'Group' ); addEventHandler ( 'onPlayerChat', root, function ( ) if ( getElementModel ( source ) == 217 ) then sGroup = 'Admin'; elseif ( getElementModel ( source ) == 1 ) then sGroup = 'Guest'; end setElementData ( source, 'Group', sGroup ); end )
-
First - Create a colshape and use getElementsWithinColShape. Then, do this.
-
It's not the same, see time.
-
Are you sure you're writing the right adress? Page: Server's uptime: 19:42:15 up 33 days, 14:04, 0 users, load average: 1.45, 1.33, 1.33 RAM usage: total used free shared buffers cached Mem: 4096 1392 2703 0 0 0 -/+ buffers/cache: 1392 2703 Swap: 0 0 0 Total: 4096 1392 2703
-
Wait for another person then, I can't test and fix it now
-
Where you found it, you can find the solution for your question too, I'm sure.
-
outputChatBox ( type ( nHouse ) .. ' - ' .. nHouse );
-
local ebacol = createColSphere ( -1276.9361572266, 54.15234375, 65.905364990234, 7 ); local state = createColPolygon ( 0, 0, -4000, -4000, -4000, 4000, 4000, 4000, 4000, -4000 ); addCommandHandler ( 'atcduty', function ( uPlayer ) if ( isElementWithinColShape ( uPlayer, ebacol ) ) then for _, player in ipairs ( getElementsWithinColShape ( state, 'vehicle' ) ) do -- state must be colshape if ( getElementModel ( getPedOccupiedVehicle ( player ) ) == 487 ) then createBlipAttachedTo ( player, 0 2, 0, 200, 255, 255, 0, 99999, uPlayer ); end end outputChatBox ( 'You are now on ATC Duty!', uPlayer, 255, 255, 255, false ); end end ) addCommandHandler ( 'endduty', function ( uPlayer ) if ( isElementWithinColShape ( uPlayer, ebacol ) ) then for _, player in ipairs ( getElementsWithinColShape ( state, 'blips' ) ) do -- state must be colshape restartResource ( getResourceFromName ( 'blips' ) ); end outputChatBox ( 'You are now off ATC Duty!', uPlayer, 255, 255, 255, false ); end end ) See comments. Also, your code must have admin rights.
-
I've seen something about this. You must add dxDrawImage somewhere in dxscoreboard.
-
Because there is no 'onPlayerMarkerHit'. It's 'onMarkerHit'.
-
Check what's type of nHouse and what number is nHouse.