Same vehicles that spawn in all other games, or special vehicles just for race? if you want race specific, first of all, you'll need to detect the game type. You can do this in a few ways, such as spawning the players in a special spawn room just for race, or a weapon that only spawns on race that automatically kills a biped, etc. Then, host testing will be slightly harder since you cannot just check a defaultly spawning vehicle. Instead, do the more annoying way of placing a vehicle in a testing room in a trigger volume. Have it create at startup, if it is in the trigger volume seconds after after spawn, it must be the hosts.. If it isnt, it must be a client vehicle that bounced off the hosts copy. PVS cameras will be required if its in its own cluster.
(Or, you can just use OS to ask if its race, and if they're host)
Anyways, you then use generic vehicle spawning scripts with respawn
(global boolean is_race false) ;;set this elsewhere like the above explanation says
(global boolean is_host false) ;;^^^^^^^^^^
(script continuous vehicle_respawn
(sleep_until (and is_race is_host) 10)
(if (volume_test_object respawn_trigg race_veh_1) (object_create_anew race_veh_1))
;;etc
)
(script startup setup
;;;;;;;;
;;Setup stuff here
;; ^^
;; ^^
;;;;;;;;;
(if (and is_host is_race) (object_create_anew_containing race_veh)
(sleep -1 vehicle_respawn))
)