Jump to content

Bean666

Members
  • Posts

    732
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Bean666

  1. Bean666

    disable warping

    try to make a RadarArea/Zone within the whole jail, and add a function when he leaves the RadarArea the Function that disables F1 will disable. try these functions maybe, dont forget to make a colshape. oncolshapehit and oncolshapeleave, you'll need to add an eventhandler. createRadarArea onColShapeHit onColShapeLeave
  2. what is your main problem? i can barely understand your grammar.
  3. it's a button and not a marker, why do you need to do destroyelement on a button when you can use guiSetVisible
  4. don't do destroyelement on GUIs. i don't understand what you're trying to do but here's an example addEventHandler("onClientGUIClick",wa,function() if ( source == wa) then guiSetVisible(wa,false) showCursor(false) end end )
  5. what's that wa , wia? tell us what exactly u want to do. and wtf are you doing.
  6. Bean666

    help marker

    what do you mean, explain better.
  7. try EDIT: Works , tested function blipPlayer() for _, v in ipairs (getElementsByType("player")) do local r, g, b = getPlayerNametagColor(v) createBlipAttachedTo(v, 0, 2, r, g, b, 255) end end addEventHandler ( "onResourceStart", getRootElement(), blipPlayer )
  8. Bean666

    FIXED

    UPDATED. explained well now
  9. hello i tried this but it doesnt trigger the event? sorry i'm kinda new in this kind of things. it's a timer table setTimer(function() triggerClientEvent(v,"HideGui", getRootElement()) end, 2000, 1); bad argument: triggerclientevent [Expected string at argument 1, got nil]
  10. yes i know. but i tried in serverside. this one wasnt working i tried to add timers on the removeeventhandler but it was kinda confusing me , this is my first time adding timers on removeventhandlers and triggerclientevent is it possible to add a removeeventhandler timer with this? or possibly when it passes 5 seconds this Event "SEEGUI" will be cancelled. triggerClientEvent(v,"SeeGui", getRootElement())
  11. is it possible to add a timer on this? example like after 5 seconds the DX image will disappear. because i added triggerclientevent that the DX image will show up when you finish the mission , but the DX image wont disappear. function startDrawing_CMD() if(drawingPanel == false) then addEventHandler("onClientPreRender", getRootElement(), draw); drawingPanel = true; end end addEvent("SeeGui",true) addEventHandler("SeeGui",root,startDrawing_CMD)
  12. Bean666

    Whats wrong?

    not working but nevermind , fixed it myself.
  13. Bean666

    Whats wrong?

    keeps saying unexpected symbol near ','
  14. Bean666

    Whats wrong?

    still not working oscar
  15. Bean666

    Whats wrong?

    still not solved and is it possible if onmarkerhit can work on this code? local spots = { { 2487.6398925781, -1666.7453613281, 13.34375 }, { 2487.6398925781, -1666.7453613281, 13.34375 } } for k,v in ipairs( spots ) do createMarker ( v[1],v[2],v[3], kind, size, r, g, b, a ) end
×
×
  • Create New...