Jump to content

drk

Members
  • Posts

    1,607
  • Joined

  • Last visited

Everything posted by drk

  1. And what the problem? just using "exports" it's much more easy.
  2. I just tabulated your code correctly.
  3. drk

    help please

    Show how you trigger the event.
  4. 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.
  5. drk

    Need a help!

    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.
  6. I will not answer those "THINGS".
  7. I gave him the code by PM already -.-
  8. This -> What you said.
  9. Time changed.. Before time wasn't the same.
  10. drk

    Marker problem

    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 )
  11. First - Create a colshape and use getElementsWithinColShape. Then, do this.
  12. 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
  13. drk

    Need help

    Wait for another person then, I can't test and fix it now
  14. Where you found it, you can find the solution for your question too, I'm sure.
  15. drk

    Need help

    Just tell me what this output.
  16. drk

    Marker problem

    LOL Never seen...
  17. drk

    Need help

    outputChatBox ( type ( nHouse ) .. ' - ' .. nHouse );
  18. 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.
  19. I've seen something about this. You must add dxDrawImage somewhere in dxscoreboard.
  20. drk

    Marker problem

    Because there is no 'onPlayerMarkerHit'. It's 'onMarkerHit'.
  21. drk

    Need help

    Check what's type of nHouse and what number is nHouse.
×
×
  • Create New...