Click or drag to resize

IWorldService Interface

Provides functionality for adding entities to and controlling the SA:MP world.

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

The IWorldService type exposes the following members.

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 methodGameText
Shows 'game text' (on-screen text) for a certain length of time for all players.
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.
Top
See Also