dorken Posted December 6, 2023 Posted December 6, 2023 i want a code if i drive Pizzaboy bike the bike will start automatically idk how to do it appreciated it if you help me 1
Tekken Posted December 7, 2023 Posted December 7, 2023 Hi, what exactly you want to start when you drive the Pizzaboy bike? Do you have a pizzaboy script?
dorken Posted December 8, 2023 Author Posted December 8, 2023 just the (Pizzaboy bike) its name of Vehicle id 448 but i want if u drive this Vehicle will start automatically 1
FlorinSzasz Posted December 8, 2023 Posted December 8, 2023 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.
dorken Posted December 8, 2023 Author Posted December 8, 2023 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 1
FlorinSzasz Posted December 8, 2023 Posted December 8, 2023 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) 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now