Jump to content

#New Freeroam [Destroy Vehicle]


Recommended Posts

Posted (edited)

Hi guys.

Im work on the new freeroam panel and gamemode.

But i have a problem on the create vehicle.

When the player quit the game, vehicles isn't destroyed and it's give this error:

Q117oj.png

My code:

Code Removed 

How to fix it? :oops:

Edited by Guest
  • MTA Team
Posted

The event "onPlayerQuit" also gives you automatically parameters to your event handler function. The parameter "quitType" will be assigned to your "player" variable. Because of this the script tries to index the playerData table with the quitType.

https://wiki.multitheftauto.com/wiki/OnPlayerQuit

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...