2024-07-04, 11:35 AM
(This post was last modified: 2024-07-04, 11:36 AM by LuvaDePedreiro.)
(2024-07-03, 05:00 PM)Virsenas Wrote: I'm pretty sure the word static in AddStaticVehicle means that after respawn it will remain the same as it was created and will not change.
Try the same procedure with a non-static vehicle and see if it works. If it does, then you will get your answer for your question. But I think by now you should have figured it out.
Thanks for the answer. I changed the "AddStaticVehicleEx" function to "CreateVehicle" function. But I still have the same result. Is there another function to create a vehicle? Or am I doing something wrong?
PHP Code:
public OnGameModeInit()
{
CreateVehicle(480, 1716.546997, 1432.696289, 10.368788, 0.277747, 100, 13, 300);
return 1;
}