Rage-Server-Template/Rage/Utils/VehicleUtil.cs

17 lines
428 B
C#
Raw Normal View History

2022-11-24 00:31:43 +00:00
using GTANetworkAPI;
namespace Rage.Utils
{
public class VehicleUtil
{
public static uint GetHashKey(string vehicle)
{
return NAPI.Util.GetHashKey(vehicle);
}
public static Vehicle Spawn(uint hash, Player player, int primary, int secondary)
{
return NAPI.Vehicle.CreateVehicle(hash, player.Position, player.Heading, primary, secondary);
}
}
}