Jump to content

SkrillexX

Members
  • Posts

    50
  • Joined

  • Last visited

Details

  • Gang
    COG

SkrillexX's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. SkrillexX

    Timers

    I've already seen it but it wasn't that useful as i didn't really understand it (I'm a beginner )
  2. SkrillexX

    Timers

    Let's say that i've precised earlier this : setTimer ( randomFunction ,6000000 ,0 ) 600000 = 5 minutes How to check if they're over using getTimerDetails
  3. SkrillexX

    Timers

    How to check if a Timer i've set earlier is over ( the time is over ) or not , Like for example , i've set a Timer with 5 minutes , how to check if those 5 minutes are over or not
  4. Just like that ? function HitMarker ( thePlayer ) if ( thePlayer == localPlayer and source == theMarker ) then addEventHandler ( "onClientRender" ,getRootElement(), dxDraw ) end end setTime ( 00 ,00 )
  5. I want to make the time 00:00 Each time the player hits the marker
  6. No , in fact , It makes the ingame time 00:00 So that i can calculate the Robbery's finish time which will be 10:00 ( 5 minutes later )
  7. Euh , i don't think this code is correct but anyways .. Correct me if there's mistakes function HitMarker(thePlayer,theMarker ) local thePlayer = getLocalPlayer() local markercheck = isElementWithinMarker(thePlayer ,theMarker ) end addEventHandler("onClientMarkerHit" ,getRootElement() ,HitMarker ) function dxDraw() if ( markercheck ) then outputChatBox ("keep inside the Marker and type /robtime to know what's the remaining time" ,thePlayer ,0 ,250 ,0 ,false ) dxDrawText("ROBBERY IS PROGRESSING ( 50000$ )", 279, 143, 661, 201, tocolor(255, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, true, false, false) setTime ( 00 , 00 ) else return end end addEventHandler("onClientRender" ,getRootElement() ,dxDraw )
  8. I can't see a way of adding onClientRender , What do you think
  9. I tried to correct the code , check it out , i added the first part of it. function RobMarker(thePlayer) local pos = 281.12664794922 ,-1768.4904785156 ,4.5230431556702 local theMarker = createMarker ( pos, "checkpoint" ,4.0 ,255 ,0 ,0 ) createBlip ( pos ,32 ,2 ,255 ,0 ,0 ,255 ,0 ) setTimer (RobMarker , 600000 ,0 ) end addEventHandler ("onClientResourceStart" ,getRootElement() ,RobMarker) function HitMarker(thePlayer,theMarker ) local thePlayer = getLocalPlayer() local markercheck = isElementWithinMarker(thePlayer ,theMarker ) if ( markercheck ) then outputChatBox ("keep inside the Marker and type /robtime to know what's the remaining time" ,thePlayer ,0 ,250 ,0 ,false ) dxDrawText("ROBBERY IS PROGRESSING ( 50000$ )", 279, 143, 661, 201, tocolor(255, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, true, false, false) setTime ( 00 , 00 ) else return end end addEventHandler("onClientMarkerHit" ,getRootElement() ,HitMarker )
  10. Greetings , as /debugscript 3 said , there's an error somewhere in line 4 , problem is that i'm unable to find it. function HitMarker(thePlayer,theMarker ) local thePlayer = getLocalPlayer() local thePlayerPos = getElementPosition(thePlayer) if (thePlayerPos == x ,y ,z) then outputChatBox ("keep inside the Marker and type /robtime to know what's the remaining time" ,thePlayer ,0 ,250 ,0 ,false ) dxDrawText("ROBBERY IS PROGRESSING ( 50000$ )", 279, 143, 661, 201, tocolor(255, 0, 0, 255), 2.00, "pricedown", "left", "top", false, false, true, false, false) setTime ( 00 , 00 ) else return end end addEventHandler("OnClientMarkerHit" ,getRootElement() ,HitMarker ) btw i precised the "x ,y ,z" on a previous function Here's debugscript's message : ERROR; Loading Script Failed : Rob\Robbery.lua:4:')' expected near '.'
  11. What am i supposed to use in order to make a DxText showing me a percentage (from 1% to 100% ) Increasing. To move from 1% to 2% , it takes 5 seconds )
  12. SkrillexX

    help

    Hello ,I am planning on making a Robbery script which consists on a big marker that will display a Dx Messgae showing Percentage of the progress of the Robbery as soon as a player hit it. Could you help me a bit with the list of functions i'll have to use ?
  13. Got it , thanks a lot
  14. What about the syntax or the appropriate use of math.random ?
  15. Anyone could tell me what's the purpose from using math.random ? is it to choose any random number ?
×
×
  • Create New...