Jump to content

Need some brief help


ajacob112

Recommended Posts

Posted

Hello , So im running a server on 1.1 but i have a small issue , all unoccupied cars blow up randomly every minute or so , Can someone tell me a check to put into my vehicle system script that all unoccupied cars dont blow up? Itd be much appreciated

Posted

You should insert this check in the vehicle blow up function:

if not getVehicleOccupant(vehicle) then 
      blowVehicle(vehicle) 
else 
      outputDebugString("Detected occupied vehicle: don't blow!") 
end 

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