Jump to content

Driving Licence Resource


Recommended Posts

Haven't tested the script but I had a look at the code.

outputChatBox( "ERROR: Since you or someone else killed the trader, you can't buy a driving licence. Ask an administrator for help." 

It's probably better to make the ped respawn after some time if it dies.

Link to comment
Haven't tested the script but I had a look at the code.
outputChatBox( "ERROR: Since you or someone else killed the trader, you can't buy a driving licence. Ask an administrator for help." 

It's probably better to make the ped respawn after some time if it dies.

That's a good idea. I didn't have that in mind. Just...I'm not familiar with timers, for loops and repeat and while loops. There aren't any good tutorials out there on the net.

Link to comment

Timers are easy. The rest as well but you don't need them for this.

Try doing

setTimer(function() 
 -- your code 
end,300000,1) 

The code inside this timer gets triggered after 300000 milliseconds or 5 minutes, and it's only triggered once.

You can make an event for when the ped dies and trigger the timer with it.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...