Jump to content

Decrease in place bike (passenger)


Estevam2d

Recommended Posts

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 
) 

Link to comment

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

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