Spice Posted July 14, 2015 Share Posted July 14, 2015 function marker (thePlayer) outputChatBox ("Loading the Cargo, Please wait", thePlayer, 255, 255, 0) startPaidLS (thePlayer) end function startPaidLS (thePlayer) setTimer (outputChatBox, 10000, 1,"Go to "..zone.." deliver your cargo", thePlayer) How to make the second function (startPaidLS) start after 10 second, i know i should use setTimer but how it would be like . Link to comment
iMr.Dawix~# Posted July 14, 2015 Share Posted July 14, 2015 setTimer(startPaidLS,10000,1,thePlayer) Link to comment
Spice Posted July 14, 2015 Author Share Posted July 14, 2015 setTimer(startPaidLS,10000,1,thePlayer) thanks, another question how to make a var for set timer function setTimer (outputChatBox, 10000, 1,"Congratulations you have done the mission successfuly and got "..money" $", thePlayer) local money = setTimer (givePlayerMoney, 10000, 1, thePlayer, math.random(1000,10000)) I tried it like that but it's not working Link to comment
Spice Posted July 14, 2015 Author Share Posted July 14, 2015 thanks you're welcome i have edited my 2 nd post check it please Link to comment
GTX Posted July 14, 2015 Share Posted July 14, 2015 setTimer(function(thePlayer) local money = math.random(1000,10000) givePlayerMoney(thePlayer, money) outputChatBox("Congratulations you have done the mission successfuly and got "..money.." $", thePlayer) end, 10000, 1, thePlayer) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now