2024-07-04, 02:22 PM
(2024-07-04, 11:35 AM)LuvaDePedreiro Wrote:(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;
}
Is this an empty gamemode or is it a fully built one which has other functionality that might conflict with your code?