Class ServerObject
Server-side object controller
Inherited Members
Namespace: RageCoop.Server
Assembly: RageCoop.Server.dll
Syntax
public abstract class ServerObject
Properties
Handle
Pass this as an argument in CustomEvent or NativeCall to convert this object to handle at client side.
Declaration
public Tuple<byte, byte[]> Handle { get; }
Property Value
Type | Description |
---|---|
Tuple<Byte, Byte[]> |
ID
Network ID of this object.
Declaration
public int ID { get; }
Property Value
Type | Description |
---|---|
Int32 |
Model
The object's model
Declaration
public Model Model { get; }
Property Value
Type | Description |
---|---|
GTA.Model |
Owner
The client that owns this object, null if it's owned by server.
Declaration
public Client Owner { get; }
Property Value
Type | Description |
---|---|
Client |
Position
Gets or sets this object's position
Declaration
public virtual Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
GTA.Math.Vector3 |
Rotation
Gets or sets this object's rotation
Declaration
public virtual Vector3 Rotation { get; set; }
Property Value
Type | Description |
---|---|
GTA.Math.Vector3 |
Methods
Delete()
Delete this object
Declaration
public virtual void Delete()
Freeze(Boolean)
Freeze this object, will throw an exception if it's a ServerProp.
Declaration
public virtual void Freeze(bool toggle)
Parameters
Type | Name | Description |
---|---|---|
Boolean | toggle |
Exceptions
Type | Condition |
---|---|
InvalidOperationException |
Update()
Send updated information to clients, would be called automatically.
Declaration
public virtual void Update()