-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathAlt.Object.cs
More file actions
15 lines (13 loc) · 775 Bytes
/
Alt.Object.cs
File metadata and controls
15 lines (13 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using AltV.Net.Data;
using AltV.Net.Elements.Entities;
using AltV.Net.Enums;
namespace AltV.Net
{
public partial class Alt
{
public static IObject CreateObject(uint model, Position position, Rotation rotation, byte alpha = 255, byte textureVariation = 0, ushort lodDistance = 100, uint streamingDistance = 0) =>
Core.CreateObject(model, position, rotation, alpha, textureVariation, lodDistance, streamingDistance);
public static IObject CreateObject(string model, Position position, Rotation rotation, byte alpha = 255, byte textureVariation = 0, ushort lodDistance = 100, uint streamingDistance = 0) =>
Core.CreateObject(Core.Hash(model), position, rotation, alpha, textureVariation, lodDistance, streamingDistance);
}
}