Comment on page
🚁
VehicleService
Service for creating vehicles.
Example usage:
-- Give all entities UFOs when the match starts
Events.MatchStart(function(event)
for i, player in ipairs(PlayerService.getPlayers()) do
local position = player:getEntity():getPosition()
MountService.spawnVehicle(VehicleType.UFO, position)
end
end)
Spawns a vehicle of the given type at the specified position.
Last modified 3mo ago