dorken Posted December 6, 2023 Share 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 Link to comment
Tekken Posted December 7, 2023 Share Posted December 7, 2023 Hi, what exactly you want to start when you drive the Pizzaboy bike? Do you have a pizzaboy script? Link to comment
dorken Posted December 8, 2023 Author Share 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 Link to comment
FlorinSzasz Posted December 8, 2023 Share 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. Link to comment
dorken Posted December 8, 2023 Author Share 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 Link to comment
FlorinSzasz Posted December 8, 2023 Share 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 Link to comment
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