Jump to content

Decrease in place bike (passenger)


Estevam2d

Recommended Posts

Posted
Bikes don't have passenger seats as far as I know.

He probably means motorcycles.

You can use the following code to disable passengers on bikes.

Server-side

addEventHandler( "onVehicleStartEnter", root, 
    function( _, seat ) 
        if ( getVehicleType( source ) == "Bike" ) and ( seat > 0 ) then 
            cancelEvent( ) 
        end 
    end 
) 

Posted

myonlake you are master ^ ^

Thank you I needed that very much .. :P

Can I ask one more thing? :D

I wanted an airplane that had places for more than 10 players to the AT-400

Would you give me a script with a given vehicle with determado place to pasareiros ? :roll:

Posted

I don't think you can increase the vehicle seats... You can make a dirty workaround to check if the total attached elements is less than your max passengers and attach the player in the vehicle or set it's camera to face to the driver and attach the player to it on a very high position or so...

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