| net.gtaun.shoebill.object.Player |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | INVALID_ID | ||||||||||
| int | MAX_CHATBUBBLE_LENGTH | ||||||||||
| int | MAX_NAME_LENGTH | ||||||||||
| int | NO_TEAM | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
applyAnimation(String animlib, String animname, float delta, int loop, int lockX, int lockY, int freeze, int time, int forcesync)
Applys an Animation to the Player.
| ||||||||||
| abstract void |
attachCameraTo(PlayerObject object)
Attaches the Camera to a PlayerObject
| ||||||||||
| abstract void |
attachCameraTo(SampObject object)
Attaches the Camera to a object.
| ||||||||||
| abstract void |
ban()
Bans the player, and closes the connection.
| ||||||||||
| abstract void |
ban(String reason)
Bans the player with a reasion, and closes the connection.
| ||||||||||
| abstract void |
cancelDialog()
Cancels the current Dialog.
| ||||||||||
| abstract void |
cancelEdit()
Cancels the editing modus.
| ||||||||||
| abstract void |
cancelSelectTextDraw()
Cancels the Textdraw selection.
| ||||||||||
| abstract void |
clearAnimations(int forcesync)
Clears all animations.
| ||||||||||
| abstract static void | connectNPC(String name, String script) | ||||||||||
| abstract void | createExplosion(Radius pos, int type) | ||||||||||
| abstract void | createExplosion(float x, float y, float z, int type, float radius) | ||||||||||
| abstract void | createExplosion(Vector3D pos, int type, float radius) | ||||||||||
| abstract boolean | deleteVar(String name) | ||||||||||
| abstract void |
disableCheckpoint()
Disables the Checkpoint
| ||||||||||
| abstract void |
disableRaceCheckpoint()
Disables the Race Checkpoint
| ||||||||||
| abstract void |
disableRemoteVehicleCollisions(boolean disable)
Sets if the vehicle collision should be disabled
| ||||||||||
| abstract boolean |
editObject(SampObject object)
Starts editing an SampObject.
| ||||||||||
| abstract boolean |
editPlayerObject(PlayerObject object)
Starts editing an PlayerObject
| ||||||||||
| abstract void |
enablePlayerCameraTarget(boolean enable)
Sets if the CameraTarget-Function should be enabled (extra bandwith)
| ||||||||||
| abstract void |
enableStuntBonus(boolean enabled)
Toggles the Stuntbonus
| ||||||||||
| abstract void |
forceClassSelection()
Forces Player to reselect his character.
| ||||||||||
| abstract static void | gameTextToAll(int time, int style, String text) | ||||||||||
| abstract static void | gameTextToAll(int time, int style, String format, Object... args) | ||||||||||
| abstract static Player |
get(int id)
Gets a Player by its Id
| ||||||||||
| abstract static Collection<Player> | get() | ||||||||||
| abstract static Player |
get(String name)
Gets a Player by its Name
| ||||||||||
| abstract Player |
getAimedTarget()
Gets the aimed Target.
| ||||||||||
| abstract float | getAngle() | ||||||||||
| abstract int |
getAnimationIndex()
Gets the AnimationIndex of the current Animation.
| ||||||||||
| abstract WeaponModel |
getArmedWeapon()
Gets the current armed Weapon.
| ||||||||||
| abstract int |
getArmedWeaponAmmo()
Gets the Ammo of the armed Weapon.
| ||||||||||
| abstract float |
getArmour()
Gets the Armour of the Player
| ||||||||||
| abstract PlayerAttach |
getAttach()
Gets the Objects attached on the Player
| ||||||||||
| abstract static Player |
getByNameOrId(String nameOrId)
Gets a Player by its name or its Id
| ||||||||||
| abstract static Player |
getByPartOfName(String partOfName)
Gets a Player or npc by a part of his name
| ||||||||||
| abstract int | getBytesReceived() | ||||||||||
| abstract int | getBytesSent() | ||||||||||
| abstract float | getCameraAspectRatio() | ||||||||||
| abstract Vector3D |
getCameraFrontVector()
Gets the Front Vector of the Camera
| ||||||||||
| abstract int |
getCameraMode()
Gets the CameraMode of the Player
| ||||||||||
| abstract Vector3D |
getCameraPosition()
Gets the Camera Position of the Player.
| ||||||||||
| abstract Actor |
getCameraTargetActor()
Returns the player's targeted actor (null if none)
You need to call enablePlayerCameraTarget() to use this function
| ||||||||||
| abstract SampObject |
getCameraTargetObject()
Returns the player's targeted object (null if none)
You need to call enablePlayerCameraTarget() to use this function
| ||||||||||
| abstract Player |
getCameraTargetPlayer()
Returns the player's targeted player (null if none)
You need to call enablePlayerCameraTarget() to use this function
| ||||||||||
| abstract Vehicle |
getCameraTargetVehicle()
Returns the player's targeted vehicle (null if none)
You need to call enablePlayerCameraTarget() to use this function
| ||||||||||
| abstract float | getCameraZoom() | ||||||||||
| abstract Checkpoint |
getCheckpoint()
Gets the current active Checkpoint.
| ||||||||||
| abstract int |
getCodepage()
Gets the Codepage of the Player.
| ||||||||||
| abstract Color |
getColor()
Gets the Color of the Player.
| ||||||||||
| abstract int | getConnectedTime() | ||||||||||
| abstract int | getConnectionStatus() | ||||||||||
| abstract Menu |
getCurrentMenu()
Gets the currently opened Menu.
| ||||||||||
| abstract DialogId |
getDialog()
Gets the Dialogid of the opened Dialog.
| ||||||||||
| abstract int |
getDrunkLevel()
Gets the Drunklevel of the Player.
| ||||||||||
| abstract FightStyle |
getFightStyle()
Gets the Fightstyle of the Player.
| ||||||||||
| abstract float |
getHealth()
Gets the Health of the Player
| ||||||||||
| abstract static Collection<Player> |
getHumans()
Get the collection of the online human players.
| ||||||||||
| abstract int |
getId()
Gets the Id of the Player
| ||||||||||
| abstract String |
getIp()
Gets the IP-Address of the Player.
| ||||||||||
| abstract String | getIpPort() | ||||||||||
| abstract PlayerKeyState |
getKeyState()
Gets the current KeyState
| ||||||||||
| abstract Vector3D | getLastShotHitPosition() | ||||||||||
| abstract Vector3D | getLastShotOrigin() | ||||||||||
| abstract AngledLocation |
getLocation()
Gets the Location of the Player
| ||||||||||
| abstract LocationZone |
getMainZoneName()
Gets the zone name where the player is located in.
| ||||||||||
| abstract PlayerMapIcon |
getMapIcon()
Gets the Map Icon
| ||||||||||
| abstract static int | getMaxPlayers() | ||||||||||
| abstract int | getMessagesReceived() | ||||||||||
| abstract int | getMessagesRecvPerSecond() | ||||||||||
| abstract int | getMessagesSent() | ||||||||||
| abstract int |
getMoney()
Gets the Money of the Player.
| ||||||||||
| abstract String |
getName()
Gets the name of the Player.
| ||||||||||
| abstract String |
getNetworkStats()
Gets the Networkstats.
| ||||||||||
| abstract static Collection<Player> |
getNpcs()
Get the collection of the online NPC players.
| ||||||||||
| abstract float | getPacketLossPercent() | ||||||||||
| abstract int |
getPing()
Gets the Ping of the Player.
| ||||||||||
| abstract static int |
getPoolSize()
Gets the player's pool size
| ||||||||||
| abstract RaceCheckpoint |
getRaceCheckpoint()
Gets the current active Race Checkpoint.
| ||||||||||
| abstract int |
getScore()
Gets the Score of the Player.
| ||||||||||
| abstract int |
getSkin()
Gets the Skin of the Player.
| ||||||||||
| abstract SpecialAction |
getSpecialAction()
Gets the current SpecialAction
| ||||||||||
| abstract Player |
getSpectatingPlayer()
Gets the Player which the current Player is spectating.
| ||||||||||
| abstract Vehicle |
getSpectatingVehicle()
Gets the Vehicle which the current Player is spectating.
| ||||||||||
| abstract PlayerState |
getState()
Gets the PlayerState of the Player
| ||||||||||
| abstract SampObject |
getSurfingObject()
Gets the Object under the Player, when he is surfing.
| ||||||||||
| abstract Vehicle |
getSurfingVehicle()
Gets the current Surfing Vehicle.
| ||||||||||
| abstract Actor |
getTargetActor()
Returns the player's targeted actor (with weapon, null if none)
| ||||||||||
| abstract int |
getTeam()
Gets the Team of the Player
| ||||||||||
| abstract Time |
getTime()
Gets the Playertime.
| ||||||||||
| abstract long |
getUpdateCount()
Gets the Updatecount of the Player.
| ||||||||||
| abstract float | getVarFloat(String name) | ||||||||||
| abstract int | getVarInt(String name) | ||||||||||
| abstract List<String> | getVarNames() | ||||||||||
| abstract String | getVarString(String name) | ||||||||||
| abstract PlayerVarType | getVarType(String name) | ||||||||||
| abstract Vehicle |
getVehicle()
Gets the current Vehicle
| ||||||||||
| abstract int |
getVehicleSeat()
Gets the Vehicleseat from the Currentvehicle
| ||||||||||
| abstract Velocity |
getVelocity()
Gets the Velocity of the Player
| ||||||||||
| abstract String |
getVersion()
Gets the version of the Players Client.
| ||||||||||
| abstract int |
getWantedLevel()
Gets the Wantedlevel of the Player.
| ||||||||||
| abstract WeaponData |
getWeaponData(int slot)
Gets WeaponData by Slotid.
| ||||||||||
| abstract PlayerWeaponSkill |
getWeaponSkill()
Gets the WeaponSkill of the Player
| ||||||||||
| abstract WeaponState |
getWeaponState()
Gets the current WeaponState.
| ||||||||||
| abstract int |
getWeather()
Gets the Weatherid of the Players Weather.
| ||||||||||
| abstract Area |
getWorldBound()
Gets the Worldbound of the Player
| ||||||||||
| abstract LocationZone |
getZoneName()
Gets the detailed zone name.
| ||||||||||
| abstract void |
giveMoney(int money)
Gives Money to the Player.
| ||||||||||
| abstract void |
giveWeapon(WeaponModel type, int ammo)
Gives the Player a Weapon.
| ||||||||||
| abstract void |
giveWeapon(WeaponData data)
Gives the Player a Weapon.
| ||||||||||
| abstract void |
interpolateCameraLookAt(float fromX, float fromY, float fromZ, float toX, float toY, float toZ, int time, CameraCutStyle cut)
Does smooth Camera Lookat Movement from one point, to another.
| ||||||||||
| abstract void |
interpolateCameraLookAt(Vector3D from, Vector3D to, int time, CameraCutStyle cut)
Does smooth Camera Lookat Movement from one point, to another.
| ||||||||||
| abstract void |
interpolateCameraPosition(float fromX, float fromY, float fromZ, float toX, float toY, float toZ, int time, CameraCutStyle cut)
Does smooth camera movement from one point, to another
| ||||||||||
| abstract void |
interpolateCameraPosition(Vector3D from, Vector3D to, int time, CameraCutStyle cut)
Does smooth camera movement from one point, to another
| ||||||||||
| abstract boolean |
isAdmin()
Checks if Player is logged in as Rcon Admin
| ||||||||||
| abstract boolean |
isControllable()
Checks if the Player is controllable (Freezed or not).
| ||||||||||
| abstract boolean |
isInAnyVehicle()
Checks if Player is in any Vehicle.
| ||||||||||
| abstract boolean |
isInVehicle(Vehicle veh)
Checks if Player is in a specific Vehicle
| ||||||||||
| abstract boolean |
isNpc()
Checks if the Player is a Npc.
| ||||||||||
| abstract boolean |
isOnline()
Gets the Onlinestate
| ||||||||||
| abstract boolean |
isRecording()
Check if the Player is recording.
| ||||||||||
| abstract boolean |
isSpectating()
Checks if the Player is spectating.
| ||||||||||
| abstract boolean |
isStreamedIn(Player forPlayer)
Checks if Player is streamed in for a specific other Player.
| ||||||||||
| abstract boolean |
isStuntBonusEnabled()
Checks if Stuntbonus is enabled for this player.
| ||||||||||
| abstract void |
kick()
Kicks the player, and closes the connection.
| ||||||||||
| abstract void |
markerForPlayer(Player player, Color color)
Sets the Color of the Players Marker for a specific other Player.
| ||||||||||
| abstract void |
playAudioStream(String url, Radius loc)
Starts an audio stream at a location
| ||||||||||
| abstract void |
playAudioStream(String url, float x, float y, float z, float distance)
Starts an audio stream at a location.
| ||||||||||
| abstract void |
playAudioStream(String url, Vector3D location, float distance)
Starts an audio stream at a location
| ||||||||||
| abstract void |
playAudioStream(String url)
Starts an audio stream for the Player
| ||||||||||
| abstract void |
playCrimeReport(int suspectId, int crimeId)
Plays a crime report for the Player.
| ||||||||||
| abstract void |
playSound(int sound, float x, float y, float z)
Plays a sound from the library at a specific position.
| ||||||||||
| abstract void |
playSound(int sound)
Plays a sound from the library.
| ||||||||||
| abstract void |
playSound(int sound, Vector3D pos)
Plays a sound from the library at a specific position.
| ||||||||||
| abstract void |
removeBuilding(int modelId, Vector3D pos, float radius)
Removes a building for the Player
| ||||||||||
| abstract void |
removeBuilding(int modelId, float x, float y, float z, float radius)
Removes a building for the Player
| ||||||||||
| abstract void |
removeBuilding(int modelId, Radius loc)
Removes a buidling for the Player
| ||||||||||
| abstract void |
removeFromVehicle()
Removes the Player from the Current Vehicle
| ||||||||||
| abstract void |
resetWeapons()
Delete all Weapons.
| ||||||||||
| abstract void |
selectObject()
Starts the selecting Mode.
| ||||||||||
| abstract void |
selectTextDraw(Color hoverColor)
Starts the textdraw Selection.
| ||||||||||
| abstract void |
sendChat(Player player, String message)
Sends a message into the Chat of a Player.
| ||||||||||
| abstract void |
sendChatToAll(String message)
Sends a Message into the Chat of all Players.
| ||||||||||
| abstract void | sendDeathMessage(Player killer, Player victim, WeaponModel weapon) | ||||||||||
| abstract static void | sendDeathMessageToAll(Player killer, Player victim, WeaponModel reason) | ||||||||||
| abstract void |
sendGameText(int time, int style, String text)
Sends a Gametext to the Player.
| ||||||||||
| abstract void |
sendGameText(int time, int style, String format, Object... args)
Send as formated Gametext to the Player.
| ||||||||||
| abstract void |
sendMessage(Color color, String format, Object... args)
Sends a formated Message to the Player.
| ||||||||||
| abstract void |
sendMessage(String message)
Send a message to the Player with color white.
| ||||||||||
| abstract void |
sendMessage(Color color, String message)
Send a Message to the Player.
| ||||||||||
| abstract static void | sendMessageToAll(Color color, String message) | ||||||||||
| abstract static void | sendMessageToAll(Color color, String format, Object... args) | ||||||||||
| abstract void |
setAngle(float angle)
Sets the Angle of the Player.
| ||||||||||
| abstract void | setArmedWeapon(WeaponModel model) | ||||||||||
| abstract void |
setArmour(float armour)
Sets the Armour of the Player.
| ||||||||||
| abstract void |
setCameraBehind()
Sets the Camera behind the Player.
| ||||||||||
| abstract void |
setCameraLookAt(Vector3D lookAt)
Sets the Position where the Camera looks at.
| ||||||||||
| abstract void |
setCameraLookAt(float x, float y, float z)
Sets the Position where the Camera looks at.
| ||||||||||
| abstract void |
setCameraLookAt(Vector3D lookAt, CameraCutStyle cut)
Sets the Position where the Camera looks at.
| ||||||||||
| abstract void |
setCameraLookAt(float x, float y, float z, CameraCutStyle cut)
Sets the Position where the Camera looks at.
| ||||||||||
| abstract void |
setCameraPosition(Vector3D pos)
Sets the Camera to a specific position.
| ||||||||||
| abstract void |
setCameraPosition(float x, float y, float z)
Sets the Camera to a specific position.
| ||||||||||
| abstract void | setChatBubble(String text, Color color, float drawDistance, int expireTime) | ||||||||||
| abstract void |
setCheckpoint(Checkpoint checkpoint)
Sets a Checkpoint for the Player.
| ||||||||||
| abstract void |
setCodepage(int codepage)
Sets the codepage by Id.
| ||||||||||
| abstract void |
setColor(Color color)
Sets the Color of the Player on the Map.
| ||||||||||
| abstract void |
setDrunkLevel(int level)
Sets the Drunklevel of the Player.
| ||||||||||
| abstract void |
setFightStyle(FightStyle style)
Sets the Fightstyle of the Player.
| ||||||||||
| abstract void |
setHealth(float health)
Sets the Health of the Player.
| ||||||||||
| abstract void |
setInterior(int interiorId)
Sets the interior of the Player.
| ||||||||||
| abstract void |
setLocation(float x, float y, float z)
Sets the Location of the Player.
| ||||||||||
| abstract void |
setLocation(AngledLocation loc)
Sets the Location of the Player.
| ||||||||||
| abstract void |
setLocation(Vector3D pos)
Sets the Location of the Player.
| ||||||||||
| abstract void |
setLocation(Location loc)
Sets the Location of the Player.
| ||||||||||
| abstract void |
setLocationFindZ(Location loc)
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| ||||||||||
| abstract void |
setLocationFindZ(AngledLocation loc)
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| ||||||||||
| abstract void |
setLocationFindZ(float x, float y, float z)
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| ||||||||||
| abstract void |
setLocationFindZ(Vector3D pos)
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| ||||||||||
| abstract void |
setMoney(int money)
Sets the Money of the Player.
| ||||||||||
| abstract void |
setName(String name)
Sets the Name of the Player.
| ||||||||||
| abstract void |
setRaceCheckpoint(RaceCheckpoint checkpoint)
Sets the Racecheckpoint
| ||||||||||
| abstract void |
setScore(int score)
Sets the score of the Player.
| ||||||||||
| abstract void |
setShopName(ShopName shop)
Sets the Shopname for the Player.
| ||||||||||
| abstract void |
setSkin(int skin)
Sets the Players Skin.
| ||||||||||
| abstract void |
setSpawnInfo(AngledLocation loc, int skin, int team, WeaponData weapon1, WeaponData weapon2, WeaponData weapon3)
Sets the Spawninfo of the Player.
| ||||||||||
| abstract void |
setSpawnInfo(Vector3D pos, int interiorId, int worldId, float angle, int skinId, int teamId, WeaponData weapon1, WeaponData weapon2, WeaponData weapon3)
Sets the Spawninfo of the Player.
| ||||||||||
| abstract void |
setSpawnInfo(float x, float y, float z, int interiorId, int worldId, float angle, int skinId, int teamId, WeaponModel weapon1, int ammo1, WeaponModel weapon2, int ammo2, WeaponModel weapon3, int ammo3)
Sets the Spawninfo of the Player.
| ||||||||||
| abstract void |
setSpawnInfo(SpawnInfo info)
Sets the Spawninfo of the Player.
| ||||||||||
| abstract void |
setSpawnInfo(Location loc, float angle, int skinId, int teamId, WeaponData weapon1, WeaponData weapon2, WeaponData weapon3)
Sets the Spawninfo of the Player.
| ||||||||||
| abstract void |
setSpecialAction(SpecialAction action)
Sets the special Action of the Player
| ||||||||||
| abstract void |
setTeam(int team)
Sets the Players Team by Id.
| ||||||||||
| abstract void |
setTime(Time time)
Sets the Playertime.
| ||||||||||
| abstract void |
setTime(int hour, int minute)
Sets the Playertime.
| ||||||||||
| abstract void | setVarFloat(String name, float value) | ||||||||||
| abstract void | setVarInt(String name, int value) | ||||||||||
| abstract void | setVarString(String name, String value) | ||||||||||
| abstract void |
setVehicle(Vehicle vehicle, int seat)
Sets the current Vehicle of the Player.
| ||||||||||
| abstract void |
setVehicle(Vehicle vehicle)
Sets the current Vehicle of the Player.
| ||||||||||
| abstract void |
setVelocity(Vector3D vel)
Sets the velocity of the Player.
| ||||||||||
| abstract void |
setWantedLevel(int level)
Sets the Wantedlevel of the Player
| ||||||||||
| abstract void |
setWeaponAmmo(WeaponModel weapon, int ammo)
Sets the Ammo of a specific Weapon by Id.
| ||||||||||
| abstract void |
setWeather(int weatherId)
Sets the Weather for the Player.
| ||||||||||
| abstract void |
setWorld(int worldId)
Sets the virtual World of the Player.
| ||||||||||
| abstract void |
setWorldBound(Area bound)
Sets the Worldboundries for the Player.
| ||||||||||
| abstract void |
showDialog(DialogId dialog, DialogStyle style, String caption, String text, String button1, String button2)
Shows a dialog for the Player
| ||||||||||
| abstract void |
showNameTagForPlayer(Player player, boolean show)
Sets if Players Nametag can be seen for an other player.
| ||||||||||
| abstract void |
spawn()
Spawns the Player, when the SpawnInfo is set.
| ||||||||||
| abstract void |
spectate(Player player, SpectateMode mode)
Sets the spectating Player.
| ||||||||||
| abstract void |
spectate(Vehicle veh, SpectateMode mode)
Sets the spectating Vehicle
| ||||||||||
| abstract void |
startRecord(RecordType type, String recordName)
Starts the recording.
| ||||||||||
| abstract void |
stopAudioStream()
Stops the audio Stream.
| ||||||||||
| abstract void |
stopRecord()
Stops the recording
| ||||||||||
| abstract void |
toggleClock(boolean toggle)
Toggles Clock
| ||||||||||
| abstract void |
toggleControllable(boolean toggle)
Sets the Controllability of the Player.
| ||||||||||
| abstract void |
toggleSpectating(boolean toggle)
Toggles the Spectating Mode
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
net.gtaun.shoebill.object.Proxyable
| |||||||||||
Applys an Animation to the Player.
| animlib | Location in Animlib |
|---|---|
| animname | Name of Animation |
| delta | Speed of the Animation |
| loop | Looping |
| lockX | Sets Player back to original X after Animation completed |
| lockY | Sets Player back to original Y after Animation completed |
| freeze | Freezes the Player while the Animation is running |
| time | How long its getting played |
| forcesync | Sync Animation with all Player |
Attaches the Camera to a PlayerObject
| object | PlayerObject |
|---|
Attaches the Camera to a object.
| object | Object |
|---|
Bans the player, and closes the connection.
Cancels the current Dialog.
Cancels the editing modus.
Cancels the Textdraw selection.
Clears all animations.
| forcesync | Sync Animation with all Player |
|---|
Disables the Checkpoint
Disables the Race Checkpoint
Sets if the vehicle collision should be disabled
| disable | If the collision should be disabled |
|---|
Starts editing an SampObject.
| object | Object to edit |
|---|
Starts editing an PlayerObject
| object | PlayerObject to edit |
|---|
Sets if the CameraTarget-Function should be enabled (extra bandwith)
| enable | If the function should be enabled |
|---|
Toggles the Stuntbonus
| enabled | toggle |
|---|
Forces Player to reselect his character.
Gets a Player by its Id
| id | Id of the Player |
|---|
Gets a Player by its Name
| name | Name of the Player |
|---|
Gets the AnimationIndex of the current Animation.
Gets the current armed Weapon.
Gets the Ammo of the armed Weapon.
Gets the Armour of the Player
Gets the Objects attached on the Player
Gets a Player by its name or its Id
| nameOrId | The Name or Id |
|---|
Gets a Player or npc by a part of his name
| partOfName | Part of the name |
|---|
Gets the Front Vector of the Camera
Gets the CameraMode of the Player
Gets the Camera Position of the Player.
Returns the player's targeted actor (null if none) You need to call enablePlayerCameraTarget() to use this function
Returns the player's targeted object (null if none) You need to call enablePlayerCameraTarget() to use this function
Returns the player's targeted player (null if none) You need to call enablePlayerCameraTarget() to use this function
Returns the player's targeted vehicle (null if none) You need to call enablePlayerCameraTarget() to use this function
Gets the current active Checkpoint.
Gets the Codepage of the Player.
Gets the Dialogid of the opened Dialog.
Gets the Drunklevel of the Player.
Gets the Fightstyle of the Player.
Gets the Health of the Player
Get the collection of the online human players.
Gets the Id of the Player
Gets the zone name where the player is located in. e.g. Las Venturas
Gets the Money of the Player.
Get the collection of the online NPC players.
Gets the Ping of the Player.
Gets the player's pool size
Gets the current active Race Checkpoint.
Gets the Score of the Player.
Gets the Skin of the Player.
Gets the current SpecialAction
Gets the Player which the current Player is spectating.
Gets the Vehicle which the current Player is spectating.
Gets the PlayerState of the Player
Gets the Object under the Player, when he is surfing.
Gets the current Surfing Vehicle. If there is none, it will return null.
Returns the player's targeted actor (with weapon, null if none)
Gets the Team of the Player
Gets the Updatecount of the Player.
Gets the Vehicleseat from the Currentvehicle
Gets the version of the Players Client.
Gets the Wantedlevel of the Player.
Gets WeaponData by Slotid.
| slot | Slotid |
|---|
Gets the WeaponSkill of the Player
Gets the Weatherid of the Players Weather.
Gets the detailed zone name. e.g. The Strip
Gives Money to the Player.
| money | Amount of Money to give |
|---|
Gives the Player a Weapon.
| type | Weapontype |
|---|---|
| ammo | Ammount of Ammo |
Gives the Player a Weapon.
| data | Weapondata |
|---|
Does smooth Camera Lookat Movement from one point, to another.
| fromX | Start X-Position |
|---|---|
| fromY | Start Y-Position |
| fromZ | Start Z-Positon |
| toX | End X-Position |
| toY | End Y-Position |
| toZ | End Z-Position |
| time | How long it will need |
| cut | Camera Cut |
Does smooth Camera Lookat Movement from one point, to another.
| from | Start Position |
|---|---|
| to | End Position |
| time | How long it will need |
| cut | Camera Cut |
Does smooth camera movement from one point, to another
| fromX | Start X-Position |
|---|---|
| fromY | Start Y-Position |
| fromZ | Start Z-Positon |
| toX | End X-Position |
| toY | End Y-Position |
| toZ | End Z-Position |
| time | How long it will need |
| cut | Camera Cut |
Does smooth camera movement from one point, to another
| from | Start Position |
|---|---|
| to | End Position |
| time | How long it will need |
| cut | Camera Cut |
Checks if Player is logged in as Rcon Admin
Checks if the Player is controllable (Freezed or not).
Checks if Player is in any Vehicle.
Checks if Player is in a specific Vehicle
| veh | Specific Vehicle |
|---|
Checks if the Player is a Npc.
Gets the Onlinestate
Check if the Player is recording.
Checks if the Player is spectating.
Checks if Player is streamed in for a specific other Player.
| forPlayer | Specific Other Player |
|---|
Checks if Stuntbonus is enabled for this player.
Kicks the player, and closes the connection.
Sets the Color of the Players Marker for a specific other Player.
| player | Player to change Map Color |
|---|---|
| color | New Color |
Starts an audio stream at a location
| url | Streamurl |
|---|---|
| loc | Location |
Starts an audio stream at a location.
| url | Streamurl |
|---|---|
| x | X-Position |
| y | Y-Position |
| z | Z-Position |
| distance | Range, until it can be heard. |
Starts an audio stream at a location
| url | Streamurl |
|---|---|
| location | Streamlocation |
| distance | Range, until it can be heard. |
Starts an audio stream for the Player
| url | Streamurl |
|---|
Plays a crime report for the Player.
| suspectId | The suspected Player |
|---|---|
| crimeId | The Crimeid |
Plays a sound from the library at a specific position.
| sound | Soundid |
|---|---|
| x | X-Position |
| y | Y-Position |
| z | Z-Position |
Plays a sound from the library.
Plays a sound from the library at a specific position.
Removes a building for the Player
| modelId | Objectmodelid |
|---|---|
| pos | Position |
| radius | Radius |
Removes a building for the Player
| modelId | Objectmodelid |
|---|---|
| x | X-Position |
| y | Y-Position |
| z | Z-Position |
| radius | Radius |
Removes a buidling for the Player
| modelId | Objectmodelid |
|---|---|
| loc | Range |
Removes the Player from the Current Vehicle
Delete all Weapons.
Starts the selecting Mode.
Starts the textdraw Selection.
| hoverColor | Color of textdraw, when player hovers over it. |
|---|
Sends a message into the Chat of a Player.
| player | Receiver |
|---|---|
| message | Text of the Message |
Sends a Message into the Chat of all Players.
| message | Text of the Message |
|---|
Sends a Gametext to the Player.
| time | Visible Time |
|---|---|
| style | Gametext Style |
| text | Text to display |
Send as formated Gametext to the Player.
| time | Visible Time |
|---|---|
| style | Gametext Style |
| format | Formated Text of the Message |
| args | Arguments |
Sends a formated Message to the Player.
| color | Color of the Message |
|---|---|
| format | Formated Text of the Message |
| args | Arguments |
Send a message to the Player with color white.
| message | Text of the Message |
|---|
Send a Message to the Player.
| color | Color of the Message |
|---|---|
| message | Text of the Message |
Sets the Angle of the Player.
| angle | Angle in degress |
|---|
Sets the Armour of the Player.
| armour | New Armour |
|---|
Sets the Camera behind the Player.
Sets the Position where the Camera looks at.
| lookAt | Vector3D-Position |
|---|
Sets the Position where the Camera looks at.
| x | X-Position |
|---|---|
| y | Y-Position |
| z | Z-Position |
Sets the Position where the Camera looks at.
| lookAt | Vector3D-Positoon |
|---|---|
| cut | CutStyle |
Sets the Position where the Camera looks at.
| x | X-Position |
|---|---|
| y | Y-Position |
| z | Z-Position |
| cut | CutStyle |
Sets the Camera to a specific position.
| pos | Camera Position |
|---|
Sets the Camera to a specific position.
| x | X-Position |
|---|---|
| y | Y-Position |
| z | Z-Position |
Sets a Checkpoint for the Player.
| checkpoint | Checkpoint |
|---|
Sets the codepage by Id.
| codepage | Id of the Codepage |
|---|
Sets the Color of the Player on the Map.
| color | New Color |
|---|
Sets the Drunklevel of the Player.
| level | New Drunklevel |
|---|
Sets the Fightstyle of the Player.
| style | New Fightstyle |
|---|
Sets the Health of the Player.
| health | New Health |
|---|
Sets the interior of the Player.
| interiorId | New Interiorid |
|---|
Sets the Location of the Player.
| x | X-Position |
|---|---|
| y | Y-Position |
| z | Z-Position |
Sets the Location of the Player.
| loc | AngledLocation |
|---|
Sets the Location of the Player.
| pos | Vector3D-Position |
|---|
Sets the Location of the Player.
| loc | Location |
|---|
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| loc | Location |
|---|
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| loc | AngledLocation |
|---|
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| x | X-Position |
|---|---|
| y | Y-Position |
| z | Z-Position |
Sets the Location of the Player, and then sets the Z-Position to the nearest Ground.
| pos | Vector3D-Position |
|---|
Sets the Money of the Player.
| money | New Money |
|---|
Sets the Name of the Player.
| name | New name |
|---|
| IllegalArgumentException | |
| IllegalLengthException | |
| AlreadyExistException | |
| IllegalArgumentException | |
| IllegalLengthException |
Sets the Racecheckpoint
| checkpoint | Racecheckpoint |
|---|
Sets the score of the Player.
| score | New Score |
|---|
Sets the Shopname for the Player.
| shop | Shopname |
|---|
Sets the Players Skin.
| skin | The SkinId |
|---|
Sets the Spawninfo of the Player.
| loc | Spawn-Location |
|---|---|
| skin | The Skin when the Player spawns. |
| team | The Id of the Team |
| weapon1 | WeaponData of first Spawn Weapon. |
| weapon2 | WeaponData of second Spawn Weapon. |
| weapon3 | WeaponData of third Spawn Weapon. |
Sets the Spawninfo of the Player.
| pos | Spawn-Position |
|---|---|
| interiorId | Spawn-Interior |
| worldId | Spawn-Worldid |
| angle | Spawn-Angle |
| skinId | The Skin when the Player spawns |
| teamId | The Id of the Team |
| weapon1 | WeaponData of first Spawn Weapon. |
| weapon2 | WeaponData of second Spawn Weapon. |
| weapon3 | WeaponData of third Spawn Weapon. |
Sets the Spawninfo of the Player.
| x | X-Spawn-Position |
|---|---|
| y | Y-Spawn-Position |
| z | Z-Spawn-Position |
| interiorId | Spawn-InteriorId |
| worldId | Spawn-Worldid |
| angle | Spawn-Angle |
| skinId | The Skin when the Player spawns |
| teamId | The Id of the Team |
| weapon1 | First Spawn Weapon |
| ammo1 | Ammo of first Weapon |
| weapon2 | Second Spawn Weapon |
| ammo2 | Ammo of second Weapon |
| weapon3 | Third Spawn Weapon |
| ammo3 | Ammo of third spawn Weapon |
Sets the Spawninfo of the Player.
| info | SpawnInfo with all information |
|---|
Sets the Spawninfo of the Player.
| loc | Spawn-Location |
|---|---|
| angle | Spawn-Angle |
| skinId | The Skin when the Player spawns |
| teamId | The Id of the Team |
| weapon1 | WeaponData of first Spawn Weapon. |
| weapon2 | WeaponData of second Spawn Weapon. |
| weapon3 | WeaponData of third Spawn Weapon. |
Sets the special Action of the Player
| action | Special Action |
|---|
Sets the Players Team by Id.
| team | The Id of the Team |
|---|
Sets the Playertime.
| hour | hour |
|---|---|
| minute | minute |
Sets the current Vehicle of the Player.
| vehicle | Vehicle to put the Player in |
|---|---|
| seat | Seat id of the Vehicle |
Sets the current Vehicle of the Player.
| vehicle | Vehicle to put the Player in |
|---|
Sets the velocity of the Player.
| vel | New Velocity |
|---|
Sets the Wantedlevel of the Player
| level | New Wantedlevel |
|---|
Sets the Ammo of a specific Weapon by Id.
| weapon | WeaponModel of the Weapon |
|---|---|
| ammo | New Ammo of the Weapon |
Sets the Weather for the Player.
| weatherId | New Weather |
|---|
Sets the virtual World of the Player.
| worldId | New Virtual World |
|---|
Sets the Worldboundries for the Player.
| bound | Boundries |
|---|
Shows a dialog for the Player
| dialog | The Dialogid |
|---|---|
| style | The Dialogstyle |
| caption | The Dialogcaption |
| text | Text to display |
| button1 | Button 1 Text |
| button2 | Button 2 Text |
Sets if Players Nametag can be seen for an other player.
| player | Other Player |
|---|---|
| show | Show |
Spawns the Player, when the SpawnInfo is set.
Sets the spectating Player.
| player | Player to spectate |
|---|---|
| mode | Spectatemode |
Sets the spectating Vehicle
| veh | Vehicle to spectate |
|---|---|
| mode | Spectatemode |
Starts the recording.
| type | Recordingtype |
|---|---|
| recordName | Filename |
Stops the audio Stream.
Stops the recording
Toggles Clock
| toggle | enabled |
|---|
Sets the Controllability of the Player.
| toggle | controllable |
|---|
Toggles the Spectating Mode
| toggle | toggle |
|---|