Search Results for

    Show / Hide Table of Contents

    Class World

    Inheritance
    System.Object
    World
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: GTA
    Assembly: ScriptHookVDotNet2.dll
    Syntax
    public static class World

    Properties

    Name Description
    CurrentDate

    Gets or sets the current date and time in the GTA World.

    CurrentDayTime
    GravityLevel

    Sets the gravity level for all World objects.

    NextWeather

    Gets or sets the next weather.

    RenderingCamera

    Gets or sets the rendering camera.

    Weather

    Gets or sets the weather.

    WeatherTransition

    Methods

    Name Description
    AddExplosion(Vector3, ExplosionType, Single, Single)
    AddExplosion(Vector3, ExplosionType, Single, Single, Boolean, Boolean)
    AddOwnedExplosion(Ped, Vector3, ExplosionType, Single, Single)
    AddOwnedExplosion(Ped, Vector3, ExplosionType, Single, Single, Boolean, Boolean)
    AddRelationshipGroup(String)

    Creates a RelationshipGroup with the given name.

    AddRope(RopeType, Vector3, Vector3, Single, Single, Boolean)

    Spawns a Rope.

    CalculateTravelDistance(Vector3, Vector3)

    Calculates the travel distance using roads and paths between 2 positions.

    ClearRelationshipBetweenGroups(Relationship, Int32, Int32)
    CreateAmbientPickup(PickupType, Vector3, Model, Int32)

    Spawns a pickup Prop at the specified position.

    CreateBlip(Vector3)

    Creates a Blip at the given position on the map.

    CreateBlip(Vector3, Single)

    Creates a Blip for a circular area at the given position on the map.

    CreateCamera(Vector3, Vector3, Single)

    Creates a Camera, use RenderingCamera to switch to this camera

    CreatePed(Model, Vector3)
    CreatePed(Model, Vector3, Single)

    Spawns a Ped of the given Model at the position and heading specified.

    CreatePickup(PickupType, Vector3, Vector3, Model, Int32)

    Spawns a Pickup at the specified position.

    CreatePickup(PickupType, Vector3, Model, Int32)

    Spawns a Pickup at the specified position.

    CreateProp(Model, Vector3, Vector3, Boolean, Boolean)

    Spawns a Prop of the given Model at the specified position.

    CreateProp(Model, Vector3, Boolean, Boolean)

    Spawns a Prop of the given Model at the specified position.

    CreateRandomPed(Vector3)

    Spawns a Ped of a random Model at the position specified.

    CreateVehicle(Model, Vector3)
    CreateVehicle(Model, Vector3, Single)

    Spawns a Vehicle of the given Model at the position and heading specified.

    DestroyAllCameras()

    Destroys all user created Cameras.

    DrawLightWithRange(Vector3, Color, Single, Single)

    Draws light around a region.

    DrawMarker(MarkerType, Vector3, Vector3, Vector3, Vector3, Color)
    DrawMarker(MarkerType, Vector3, Vector3, Vector3, Vector3, Color, Boolean, Boolean, Int32, Boolean, String, String, Boolean)
    DrawSpotLight(Vector3, Vector3, Color, Single, Single, Single, Single, Single)
    DrawSpotLightWithShadow(Vector3, Vector3, Color, Single, Single, Single, Single, Single)
    GetActiveBlips()
    GetAllEntities()

    Gets an array of all Entitys in the World.

    GetAllPeds()
    GetAllPeds(Model)
    GetAllProps()
    GetAllProps(Model)
    GetAllVehicles()
    GetAllVehicles(Model)
    GetClosest<T>(Vector3, T[])

    Gets the closest ISpatial to a given position in the World.

    GetClosestPed(Vector3, Single)
    GetClosestVehicle(Vector3, Single)
    GetCrosshairCoordinates()

    Determines where the crosshair intersects with the world.

    GetDistance(Vector3, Vector3)

    Gets the straight line distance between 2 positions.

    GetGroundHeight(Vector2)

    Gets the height of the ground at a given position.

    GetGroundHeight(Vector3)

    Gets the height of the ground at a given position. Note : If the Vector3 is already below the ground, this will return 0. You may want to use the other overloaded function to be safe.

    GetNearbyEntities(Vector3, Single)

    Gets an array of all Entitys in a given region in the World.

    GetNearbyPeds(Vector3, Single)
    GetNearbyPeds(Vector3, Single, Model)
    GetNearbyPeds(Ped, Single)
    GetNearbyProps(Vector3, Single)
    GetNearbyProps(Vector3, Single, Model)
    GetNearbyVehicles(Vector3, Single)
    GetNearbyVehicles(Vector3, Single, Model)
    GetNearbyVehicles(Ped, Single)
    GetNextPositionOnSidewalk(Vector2)

    Gets the next position on the street where a Ped can be placed.

    GetNextPositionOnSidewalk(Vector3)

    Gets the next position on the street where a Ped can be placed.

    GetNextPositionOnStreet(Vector2, Boolean)

    Gets the next position on the street where a Vehicle can be placed.

    GetNextPositionOnStreet(Vector3)
    GetNextPositionOnStreet(Vector3, Boolean)

    Gets the next position on the street where a Vehicle can be placed.

    GetRelationshipBetweenGroups(Int32, Int32)
    GetSafeCoordForPed(Vector3)
    GetSafeCoordForPed(Vector3, Boolean)
    GetSafeCoordForPed(Vector3, Boolean, Int32)

    Gets the nearest safe coordinate to position a Ped.

    GetStreetName(Vector2)

    Determines the name of the street which is the closest to the given coordinates.

    GetStreetName(Vector3)

    Determines the name of the street which is the closest to the given coordinates.

    GetWaypointPosition()
    GetZoneName(Vector2)
    GetZoneName(Vector3)
    GetZoneNameLabel(Vector2)
    GetZoneNameLabel(Vector3)
    Raycast(Vector3, Vector3, IntersectOptions)
    Raycast(Vector3, Vector3, IntersectOptions, Entity)
    Raycast(Vector3, Vector3, Single, IntersectOptions)
    Raycast(Vector3, Vector3, Single, IntersectOptions, Entity)
    RaycastCapsule(Vector3, Vector3, Single, IntersectOptions)
    RaycastCapsule(Vector3, Vector3, Single, IntersectOptions, Entity)
    RaycastCapsule(Vector3, Vector3, Single, Single, IntersectOptions)
    RaycastCapsule(Vector3, Vector3, Single, Single, IntersectOptions, Entity)
    RemoveRelationshipGroup(Int32)
    SetBlackout(Boolean)
    SetRelationshipBetweenGroups(Relationship, Int32, Int32)
    ShootBullet(Vector3, Vector3, Ped, Model, Int32)
    ShootBullet(Vector3, Vector3, Ped, Model, Int32, Single)
    TransitionToWeather(Weather, Single)

    Transitions to weather.

    ☀
    ☾
    Back to top Copyright (C) 2015 crosire - zlib
    Generated with DocFX