Search Results for

    Show / Hide Table of Contents

    Class ServerObject

    Server-side object controller

    Inheritance
    Object
    ServerObject
    ServerPed
    ServerProp
    ServerVehicle
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: RageCoop.Server.Scripting
    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
    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
    Vector3

    Rotation

    Gets or sets this object's rotation

    Declaration
    public virtual Vector3 Rotation { get; set; }
    Property Value
    Type Description
    Vector3

    Methods

    Delete()

    Send updated information to clients, would be called automatically.

    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
    In This Article
    Back to top Generated by DocFX