Jump to content

any help


dorken

Recommended Posts

Posted
41 minutes ago, dorken said:

just the (Pizzaboy bike) its name of  Vehicle id 448 but i want if u drive this Vehicle will start automatically 

You want to start a job a mission? if you dont have any other script when you enter that bike the engine is on by default.

Posted

exactly i want if drive the bike the engine is on by default 

( sorry its just i have a bad english ) i appreciate it  you if you help me 

  • Like 1
Posted

Here is the code ->

function onBikeEnter(player,seat,jacked)
    if player then 
        if getElementModel(source) == 448 then 
            setVehicleEngineState(source,true)
        end 
    end 
end 

addEventHandler("onVehicleEnter",getRootElement(),onBikeEnter)

 

  • Like 1

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