2019-05-06, 07:23 AM
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.
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.