Click or drag to resize

WorldService Class

Represents a service for adding entities to and control the SA:MP world.
Inheritance Hierarchy
SystemObject
  SampSharp.Entities.SAMPWorldService

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public class WorldService : IWorldService

The WorldService type exposes the following members.

Constructors
  NameDescription
Public methodWorldService
Initializes a new instance of the WorldService class.
Top
Properties
  NameDescription
Public propertyGravity
Gets or sets the gravity.
Top
Methods
  NameDescription
Public methodAddStaticPickup
Adds a 'static' pickup to the world. These pickups support weapons, health, armor etc., with the ability to function without scripting them (weapons/health/armor will be given automatically).
Public methodCreateActor
Creates a new actor in the world.
Public methodCreateExplosion
Creates an explosion for all players.
Public methodCreateGangZone
Creates a gang zone in the world.
Public methodCreateMenu
Creates the menu in this world.
Public methodCreateObject
Creates an object in the world.
Public methodCreatePickup
Creates a pickup in the world.
Public methodCreatePlayerObject
Creates a player object in the world.
Public methodCreatePlayerTextDraw
Creates the player textdraw in the world.
Public methodCreatePlayerTextLabel
Creates a player text label in the world.
Public methodCreateStaticVehicle
Creates a static vehicle in the world.
Public methodCreateTextDraw
Creates a textdraw in the world.
Public methodCreateTextLabel
Creates a text label in the world.
Public methodCreateVehicle
Creates a vehicle in the world.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGameText
Shows 'game text' (on-screen text) for a certain length of time for all players.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSendClientMessage(String)
This function sends a message to all players in white in the chat. The whole line in the chat box will be in the set color unless color embedding is used.
Public methodSendClientMessage(String, Object)
This function sends a message to all players in white in the chat. The whole line in the chat box will be in the set color unless color embedding is used.
Public methodSendClientMessage(Color, String)
This function sends a message to all players with a chosen color in the chat. The whole line in the chat box will be in the set color unless color embedding is used.
Public methodSendClientMessage(Color, String, Object)
This function sends a message to all players with a chosen color in the chat. The whole line in the chat box will be in the set color unless color embedding is used.
Public methodSendDeathMessage
Adds a death to the kill feed on the right-hand side of the screen of all players.
Public methodSendPlayerMessageToPlayer
Sends a message in the name the specified sender to all players. The message will appear in the chat box and can be seen by all player. The line will start with the the sender's name in their color, followed by the message in white.
Public methodSetObjectsDefaultCameraCollision
Allows camera collisions with newly created objects to be disabled by default.
Public methodSetWeather
Set the weather for all players.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also