(2019-05-06, 07:23 AM)Southclaws Wrote: A command to spawn vehicles should use CreateVehicle instead of AddStaticVehicle.
As for why they aren't spawning on OnGameModeInit, I'm not entirely sure. The code is as simple as it gets so all I can think of is either you have some dodgy library hooking the create vehicle functions and breaking functionality or `LoadStaticVehicles` just isn't being called for whatever reason. Log out calls and try and strip back your code to isolate the problem.
Well function isn't getting called, I tried to comment everything and that's giving me that.
Also I'm using CreateVehicle too but they ain't spawning.
PHP Code:
Static vehicles loaded.
Static objects loaded.