Jump to content

drk

Members
  • Posts

    1,607
  • Joined

  • Last visited

Everything posted by drk

  1. drk

    about mapInfo

    addEvent ( 'onClientMapStarting', true ) addEventHandler ( 'onClientMapStarting', root, function ( mapInfo ) outputChatBox ( 'Map: ' .. mapInfo.name ) outputChatBox ( 'Played: ' .. mapInfo.playedCount .. ' times' ) outputChatBox ( 'Author: ' .. mapInfo.author ) outputChatBox ( 'Last Time Played: ' .. mapInfo.lastTimePlayed ) outputChatBox ( 'Mode: ' .. mapInfo.modename ) end ) Is that hard?
  2. drk

    Need Help

    Jaysds1, getVehicleFromName don't return a table. You're checking if 'carname' is ' ' and not if isn't ' ' and you're checking 'if ( button ) then' unecessarely.
  3. drk

    Problem Car Shops

    You forgot an end. function guiClick ( button, state, absoluteX, absoluteY ) if (source == GUIEditor_Button[1]) then triggerServerEvent ("carSpawn", getLocalPlayer()) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick)
  4. drk

    Problem Car Shops

    Can you show the line?
  5. drk

    Need Help

    This makes no-sense equal to mine. But mine isn't too bad
  6. drk

    Need Help

    You simply can't. You can't get vehicle element from name.
  7. drk

    Need Help

    In the gridlist, appears vehicle name, id or other thing? TAPL, I only changed his code.
  8. drk

    Need Help

    sckatchof, try mine.
  9. drk

    Need Help

    function Pincar() local rowindex, columnindex = guiGridListGetSelectedItem ( GridlOwnerCar ) if ( rowindex and columnindex and rowindex ~= -1 and columnindex ~= -1 ) then local carname = guiGridListGetItemText ( GridlOwnerCar, rowindex, columnindex) createBlipAttachedTo ( getVehicleModelFromName ( carname ), 19, 4, 255, 0, 0, 255, 0, 99999.0, localPlayer) end end
  10. drk

    Need Help

    function Pincar() local rowindex, columnindex = guiGridListGetSelectedItem ( GridlOwnerCar ) local carname = guiGridListGetItemText ( GridlOwnerCar, rowindex, columnindex) triggerServerEvent("PinCar", root, localPlayer, carname) end
  11. addEventHandler ( 'onVehicleEnter', root, function ( uPlayer ) setTimer ( function ( uPlayer, uVehicle ) local job = getElementData ( uPlayer, 'Job' ); -- change 'Job' to your job element data if ( job == 'Pilot' ) then takePlayerMoney ( uPlayer, 1000 ); givePlayerMoney ( getVehicleController ( uVehicle ), 1000 ); end end, 5000, 0, uPlayer, source ) end )
  12. addEventHandler ( 'onVehicleEnter', root, function ( uPlayer ) setTimer ( function ( ) takePlayerMoney ( uPlayer, 1000 ); givePlayerMoney ( getVehicleController ( source ), 1000 ); end, 5000, 0 ) end ) Just example.
  13. Syntax: setTimer ( funcName, interval, timesToRepeat, arguments )
  14. Second guy who post when he solved the problem LOL
  15. setElementRotation ( tCars [ id ], nX, nY, nZ )
  16. drk

    Collision

    Fail. @@Kenix, I posted the same and he said that don't work.
  17. drk

    Little problem

    @@BriGhtx3 -> Your code is wrong and I already posted the correct one.
  18. drk

    Little problem

    addEventHandler ( 'onPickupUse', root, function ( uPed ) if ( source == busdrivepickup ) then if ( getElementModel ( uPed ) == 171 ) then local nX, nY, nZ = getElementPosition ( uPed ); local eBus = createVehicle ( 431, x + 5, y, z ); warpPedIntoVehicle ( uPed, eBus ); end end end )
  19. drk

    Collision

    You used my last code? Or the first? See my posts.
  20. Try not using math.abs. areaID[i] = createRadarArea ( x, y, x - x2, y - y2, 0, 0, 0, 0 )
×
×
  • Create New...