samp-node-lib
Version:
NodeJS library for Scripting San Andreas Multiplayer:SAMP depends on samp-node plugin
647 lines • 26.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SampPlayerNativeFunctions = void 0;
const SampFunctions = require("./SampFunctions");
class SampPlayerNativeFunctions {
constructor(playerid) {
this.playerid = playerid;
}
SendClientMessage(color, message) {
return SampFunctions.SendClientMessage(this.playerid, color, message);
}
SendPlayerMessageToPlayer(senderid, message) {
return SampFunctions.SendPlayerMessageToPlayer(this.playerid, senderid, message);
}
SendDeathMessageToPlayer(killer, killee, weapon) {
return SampFunctions.SendDeathMessageToPlayer(this.playerid, killer, killee, weapon);
}
GameTextForPlayer(string, time, style) {
return SampFunctions.GameTextForPlayer(this.playerid, string, time, style);
}
IsPlayerNPC() {
return SampFunctions.IsPlayerNPC(this.playerid);
}
IsPlayerAdmin() {
return SampFunctions.IsPlayerAdmin(this.playerid);
}
Kick() {
return SampFunctions.Kick(this.playerid);
}
Ban() {
return SampFunctions.Ban(this.playerid);
}
BanEx(reason) {
return SampFunctions.BanEx(this.playerid, reason);
}
GetPlayerNetworkStats(retstr_size) {
return SampFunctions.GetPlayerNetworkStats(this.playerid, retstr_size);
}
GetPlayerVersion(len) {
return SampFunctions.GetPlayerVersion(this.playerid, len);
}
NetStats_GetConnectedTime() {
return SampFunctions.NetStats_GetConnectedTime(this.playerid);
}
NetStats_MessagesReceived() {
return SampFunctions.NetStats_MessagesReceived(this.playerid);
}
NetStats_BytesReceived() {
return SampFunctions.NetStats_BytesReceived(this.playerid);
}
NetStats_MessagesSent() {
return SampFunctions.NetStats_MessagesSent(this.playerid);
}
NetStats_BytesSent() {
return SampFunctions.NetStats_BytesSent(this.playerid);
}
NetStats_MessagesRecvPerSecond() {
return SampFunctions.NetStats_MessagesRecvPerSecond(this.playerid);
}
NetStats_PacketLossPercent() {
return SampFunctions.NetStats_PacketLossPercent(this.playerid);
}
NetStats_ConnectionStatus() {
return SampFunctions.NetStats_ConnectionStatus(this.playerid);
}
NetStats_GetIpPort(ip_port_len) {
return SampFunctions.NetStats_GetIpPort(this.playerid, ip_port_len);
}
ShowMenuForPlayer(menuid) {
return SampFunctions.ShowMenuForPlayer(menuid, this.playerid);
}
HideMenuForPlayer(menuid) {
return SampFunctions.HideMenuForPlayer(menuid, this.playerid);
}
GetPlayerMenu() {
return SampFunctions.GetPlayerMenu(this.playerid);
}
TextDrawShowForPlayer(text) {
return SampFunctions.TextDrawShowForPlayer(this.playerid, text);
}
TextDrawHideForPlayer(text) {
return SampFunctions.TextDrawHideForPlayer(this.playerid, text);
}
GangZoneShowForPlayer(zone, color) {
return SampFunctions.GangZoneShowForPlayer(this.playerid, zone, color);
}
GangZoneHideForPlayer(zone) {
return SampFunctions.GangZoneHideForPlayer(this.playerid, zone);
}
GangZoneFlashForPlayer(zone, flashcolor) {
return SampFunctions.GangZoneFlashForPlayer(this.playerid, zone, flashcolor);
}
GangZoneStopFlashForPlayer(zone) {
return SampFunctions.GangZoneStopFlashForPlayer(this.playerid, zone);
}
Attach3DTextLabelToPlayer(id, OffsetX, OffsetY, OffsetZ) {
return SampFunctions.Attach3DTextLabelToPlayer(id, this.playerid, OffsetX, OffsetY, OffsetZ);
}
CreatePlayer3DTextLabel(text, color, X, Y, Z, DrawDistance, attachedplayer, attachedvehicle, testLOS) {
return SampFunctions.CreatePlayer3DTextLabel(this.playerid, text, color, X, Y, Z, DrawDistance, attachedplayer, attachedvehicle, testLOS);
}
DeletePlayer3DTextLabel(id) {
return SampFunctions.DeletePlayer3DTextLabel(this.playerid, id);
}
UpdatePlayer3DTextLabelText(id, color, text) {
return SampFunctions.UpdatePlayer3DTextLabelText(this.playerid, id, color, text);
}
ShowPlayerDialog(dialogid, style, caption, info, button1, button2) {
return SampFunctions.ShowPlayerDialog(this.playerid, dialogid, style, caption, info, button1, button2);
}
gpci(maxlen) {
return SampFunctions.gpci(this.playerid, maxlen);
}
AttachObjectToPlayer(objectid, OffsetX, OffsetY, OffsetZ, RotX, RotY, RotZ) {
return SampFunctions.AttachObjectToPlayer(objectid, this.playerid, OffsetX, OffsetY, OffsetZ, RotX, RotY, RotZ);
}
EditObject(objectid) {
return SampFunctions.EditObject(this.playerid, objectid);
}
EditPlayerObject(objectid) {
return SampFunctions.EditPlayerObject(this.playerid, objectid);
}
SelectObject() {
return SampFunctions.SelectObject(this.playerid);
}
CancelEdit() {
return SampFunctions.CancelEdit(this.playerid);
}
CreatePlayerObject(modelid, X, Y, Z, rX, rY, rZ, DrawDistance) {
return SampFunctions.CreatePlayerObject(this.playerid, modelid, X, Y, Z, rX, rY, rZ, DrawDistance);
}
AttachPlayerObjectToVehicle(objectid, vehicleid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, RotZ) {
return SampFunctions.AttachPlayerObjectToVehicle(this.playerid, objectid, vehicleid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, RotZ);
}
SetPlayerObjectPos(objectid, X, Y, Z) {
return SampFunctions.SetPlayerObjectPos(this.playerid, objectid, X, Y, Z);
}
GetPlayerObjectPos(objectid) {
return SampFunctions.GetPlayerObjectPos(this.playerid, objectid);
}
SetPlayerObjectRot(objectid, RotX, RotY, RotZ) {
return SampFunctions.SetPlayerObjectRot(this.playerid, objectid, RotX, RotY, RotZ);
}
GetPlayerObjectRot(objectid) {
return SampFunctions.GetPlayerObjectRot(this.playerid, objectid);
}
GetPlayerObjectModel(objectid) {
return SampFunctions.GetPlayerObjectModel(this.playerid, objectid);
}
SetPlayerObjectNoCameraCol(objectid) {
return SampFunctions.SetPlayerObjectNoCameraCol(this.playerid, objectid);
}
IsValidPlayerObject(objectid) {
return SampFunctions.IsValidPlayerObject(this.playerid, objectid);
}
DestroyPlayerObject(objectid) {
return SampFunctions.DestroyPlayerObject(this.playerid, objectid);
}
MovePlayerObject(objectid, X, Y, Z, Speed, RotX, RotY, RotZ) {
return SampFunctions.MovePlayerObject(this.playerid, objectid, X, Y, Z, Speed, RotX, RotY, RotZ);
}
StopPlayerObject(objectid) {
return SampFunctions.StopPlayerObject(this.playerid, objectid);
}
IsPlayerObjectMoving(objectid) {
return SampFunctions.IsPlayerObjectMoving(this.playerid, objectid);
}
SetPlayerObjectMaterial(objectid, materialindex, modelid, txdname, texturename, materialcolor) {
return SampFunctions.SetPlayerObjectMaterial(this.playerid, objectid, materialindex, modelid, txdname, texturename, materialcolor);
}
SetPlayerObjectMaterialText(objectid, text, materialindex, materialsize, fontface, fontsize, bold, fontcolor, backcolor, textalignment) {
return SampFunctions.SetPlayerObjectMaterialText(this.playerid, objectid, text, materialindex, materialsize, fontface, fontsize, bold, fontcolor, backcolor, textalignment);
}
SetSpawnInfo(team, skin, x, y, z, rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) {
return SampFunctions.SetSpawnInfo(this.playerid, team, skin, x, y, z, rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
}
SpawnPlayer() {
return SampFunctions.SpawnPlayer(this.playerid);
}
SetPlayerPos(x, y, z) {
return SampFunctions.SetPlayerPos(this.playerid, x, y, z);
}
SetPlayerPosFindZ(x, y, z) {
return SampFunctions.SetPlayerPosFindZ(this.playerid, x, y, z);
}
GetPlayerPos() {
return SampFunctions.GetPlayerPos(this.playerid);
}
SetPlayerFacingAngle(ang) {
return SampFunctions.SetPlayerFacingAngle(this.playerid, ang);
}
GetPlayerFacingAngle() {
return SampFunctions.GetPlayerFacingAngle(this.playerid);
}
IsPlayerInRangeOfPoint(range, x, y, z) {
return SampFunctions.IsPlayerInRangeOfPoint(this.playerid, range, x, y, z);
}
GetPlayerDistanceFromPoint(X, Y, Z) {
return SampFunctions.GetPlayerDistanceFromPoint(this.playerid, X, Y, Z);
}
IsPlayerStreamedIn(forplayerid) {
return SampFunctions.IsPlayerStreamedIn(this.playerid, forplayerid);
}
SetPlayerInterior(interiorid) {
return SampFunctions.SetPlayerInterior(this.playerid, interiorid);
}
GetPlayerInterior() {
return SampFunctions.GetPlayerInterior(this.playerid);
}
SetPlayerHealth(health) {
return SampFunctions.SetPlayerHealth(this.playerid, health);
}
GetPlayerHealth() {
return SampFunctions.GetPlayerHealth(this.playerid);
}
SetPlayerArmour(armour) {
return SampFunctions.SetPlayerArmour(this.playerid, armour);
}
GetPlayerArmour() {
return SampFunctions.GetPlayerArmour(this.playerid);
}
SetPlayerAmmo(weaponslot, ammo) {
return SampFunctions.SetPlayerAmmo(this.playerid, weaponslot, ammo);
}
GetPlayerAmmo() {
return SampFunctions.GetPlayerAmmo(this.playerid);
}
GetPlayerWeaponState() {
return SampFunctions.GetPlayerWeaponState(this.playerid);
}
GetPlayerTargetPlayer() {
return SampFunctions.GetPlayerTargetPlayer(this.playerid);
}
GetPlayerTargetActor() {
return SampFunctions.GetPlayerTargetActor(this.playerid);
}
SetPlayerTeam(teamid) {
return SampFunctions.SetPlayerTeam(this.playerid, teamid);
}
GetPlayerTeam() {
return SampFunctions.GetPlayerTeam(this.playerid);
}
SetPlayerScore(score) {
return SampFunctions.SetPlayerScore(this.playerid, score);
}
GetPlayerScore() {
return SampFunctions.GetPlayerScore(this.playerid);
}
GetPlayerDrunkLevel() {
return SampFunctions.GetPlayerDrunkLevel(this.playerid);
}
SetPlayerDrunkLevel(level) {
return SampFunctions.SetPlayerDrunkLevel(this.playerid, level);
}
SetPlayerColor(color) {
return SampFunctions.SetPlayerColor(this.playerid, color);
}
GetPlayerColor() {
return SampFunctions.GetPlayerColor(this.playerid);
}
SetPlayerSkin(skinid) {
return SampFunctions.SetPlayerSkin(this.playerid, skinid);
}
GetPlayerSkin() {
return SampFunctions.GetPlayerSkin(this.playerid);
}
GivePlayerWeapon(weaponid, ammo) {
return SampFunctions.GivePlayerWeapon(this.playerid, weaponid, ammo);
}
ResetPlayerWeapons() {
return SampFunctions.ResetPlayerWeapons(this.playerid);
}
SetPlayerArmedWeapon(weaponid) {
return SampFunctions.SetPlayerArmedWeapon(this.playerid, weaponid);
}
GetPlayerWeaponData(slot) {
return SampFunctions.GetPlayerWeaponData(this.playerid, slot);
}
GivePlayerMoney(money) {
return SampFunctions.GivePlayerMoney(this.playerid, money);
}
ResetPlayerMoney() {
return SampFunctions.ResetPlayerMoney(this.playerid);
}
SetPlayerName(name) {
return SampFunctions.SetPlayerName(this.playerid, name);
}
GetPlayerMoney() {
return SampFunctions.GetPlayerMoney(this.playerid);
}
GetPlayerState() {
return SampFunctions.GetPlayerState(this.playerid);
}
GetPlayerIp(len) {
return SampFunctions.GetPlayerIp(this.playerid, len);
}
GetPlayerPing() {
return SampFunctions.GetPlayerPing(this.playerid);
}
GetPlayerWeapon() {
return SampFunctions.GetPlayerWeapon(this.playerid);
}
GetPlayerKeys() {
return SampFunctions.GetPlayerKeys(this.playerid);
}
GetPlayerName(len) {
return SampFunctions.GetPlayerName(this.playerid, len);
}
SetPlayerTime(hour, minute) {
return SampFunctions.SetPlayerTime(this.playerid, hour, minute);
}
GetPlayerTime() {
return SampFunctions.GetPlayerTime(this.playerid);
}
TogglePlayerClock(toggle) {
return SampFunctions.TogglePlayerClock(this.playerid, toggle);
}
SetPlayerWeather(weather) {
return SampFunctions.SetPlayerWeather(this.playerid, weather);
}
ForceClassSelection() {
return SampFunctions.ForceClassSelection(this.playerid);
}
SetPlayerWantedLevel(level) {
return SampFunctions.SetPlayerWantedLevel(this.playerid, level);
}
GetPlayerWantedLevel() {
return SampFunctions.GetPlayerWantedLevel(this.playerid);
}
SetPlayerFightingStyle(style) {
return SampFunctions.SetPlayerFightingStyle(this.playerid, style);
}
GetPlayerFightingStyle() {
return SampFunctions.GetPlayerFightingStyle(this.playerid);
}
SetPlayerVelocity(X, Y, Z) {
return SampFunctions.SetPlayerVelocity(this.playerid, X, Y, Z);
}
GetPlayerVelocity() {
return SampFunctions.GetPlayerVelocity(this.playerid);
}
PlayCrimeReportForPlayer(suspectid, crime) {
return SampFunctions.PlayCrimeReportForPlayer(this.playerid, suspectid, crime);
}
PlayAudioStreamForPlayer(url, posX, posY, posZ, distance, usepos) {
return SampFunctions.PlayAudioStreamForPlayer(this.playerid, url, posX, posY, posZ, distance, usepos);
}
StopAudioStreamForPlayer() {
return SampFunctions.StopAudioStreamForPlayer(this.playerid);
}
SetPlayerShopName(shopname) {
return SampFunctions.SetPlayerShopName(this.playerid, shopname);
}
SetPlayerSkillLevel(skill, level) {
return SampFunctions.SetPlayerSkillLevel(this.playerid, skill, level);
}
GetPlayerSurfingVehicleID() {
return SampFunctions.GetPlayerSurfingVehicleID(this.playerid);
}
GetPlayerSurfingObjectID() {
return SampFunctions.GetPlayerSurfingObjectID(this.playerid);
}
RemoveBuildingForPlayer(modelid, fX, fY, fZ, fRadius) {
return SampFunctions.RemoveBuildingForPlayer(this.playerid, modelid, fX, fY, fZ, fRadius);
}
GetPlayerLastShotVectors() {
return SampFunctions.GetPlayerLastShotVectors(this.playerid);
}
SetPlayerAttachedObject(index, modelid, bone, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ, materialcolor1, materialcolor2) {
return SampFunctions.SetPlayerAttachedObject(this.playerid, index, modelid, bone, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ, materialcolor1, materialcolor2);
}
RemovePlayerAttachedObject(index) {
return SampFunctions.RemovePlayerAttachedObject(this.playerid, index);
}
IsPlayerAttachedObjectSlotUsed(index) {
return SampFunctions.IsPlayerAttachedObjectSlotUsed(this.playerid, index);
}
EditAttachedObject(index) {
return SampFunctions.EditAttachedObject(this.playerid, index);
}
CreatePlayerTextDraw(x, y, text) {
return SampFunctions.CreatePlayerTextDraw(this.playerid, x, y, text);
}
PlayerTextDrawDestroy(text) {
SampFunctions.PlayerTextDrawDestroy(this.playerid, text);
}
PlayerTextDrawLetterSize(text, x, y) {
return SampFunctions.PlayerTextDrawLetterSize(this.playerid, text, x, y);
}
PlayerTextDrawTextSize(text, x, y) {
return SampFunctions.PlayerTextDrawTextSize(this.playerid, text, x, y);
}
PlayerTextDrawAlignment(text, alignment) {
return SampFunctions.PlayerTextDrawAlignment(this.playerid, text, alignment);
}
PlayerTextDrawColor(text, color) {
return SampFunctions.PlayerTextDrawColor(this.playerid, text, color);
}
PlayerTextDrawUseBox(text, use) {
return SampFunctions.PlayerTextDrawUseBox(this.playerid, text, use);
}
PlayerTextDrawBoxColor(text, color) {
return SampFunctions.PlayerTextDrawBoxColor(this.playerid, text, color);
}
PlayerTextDrawSetShadow(text, size) {
return SampFunctions.PlayerTextDrawSetShadow(this.playerid, text, size);
}
PlayerTextDrawSetOutline(text, size) {
return SampFunctions.PlayerTextDrawSetOutline(this.playerid, text, size);
}
PlayerTextDrawBackgroundColor(text, color) {
return SampFunctions.PlayerTextDrawBackgroundColor(this.playerid, text, color);
}
PlayerTextDrawFont(text, font) {
return SampFunctions.PlayerTextDrawFont(this.playerid, text, font);
}
PlayerTextDrawSetProportional(text, set) {
return SampFunctions.PlayerTextDrawSetProportional(this.playerid, text, set);
}
PlayerTextDrawSetSelectable(text, set) {
return SampFunctions.PlayerTextDrawSetSelectable(this.playerid, text, set);
}
PlayerTextDrawShow(text) {
return SampFunctions.PlayerTextDrawShow(this.playerid, text);
}
PlayerTextDrawHide(text) {
return SampFunctions.PlayerTextDrawHide(this.playerid, text);
}
PlayerTextDrawSetString(text, string) {
return SampFunctions.PlayerTextDrawSetString(this.playerid, text, string);
}
PlayerTextDrawSetPreviewModel(text, modelindex) {
return SampFunctions.PlayerTextDrawSetPreviewModel(this.playerid, text, modelindex);
}
PlayerTextDrawSetPreviewRot(text, fRotX, fRotY, fRotZ, fZoom) {
return SampFunctions.PlayerTextDrawSetPreviewRot(this.playerid, text, fRotX, fRotY, fRotZ, fZoom);
}
PlayerTextDrawSetPreviewVehCol(text, color1, color2) {
return SampFunctions.PlayerTextDrawSetPreviewVehCol(this.playerid, text, color1, color2);
}
SetPVarInt(varname, int_value) {
return SampFunctions.SetPVarInt(this.playerid, varname, int_value);
}
GetPVarInt(varname) {
return SampFunctions.GetPVarInt(this.playerid, varname);
}
SetPVarString(varname, string_value) {
return SampFunctions.SetPVarString(this.playerid, varname, string_value);
}
GetPVarString(varname, len) {
return SampFunctions.GetPVarString(this.playerid, varname, len);
}
SetPVarFloat(varname, float_value) {
return SampFunctions.SetPVarFloat(this.playerid, varname, float_value);
}
GetPVarFloat(varname) {
return SampFunctions.GetPVarFloat(this.playerid, varname);
}
DeletePVar(varname) {
return SampFunctions.DeletePVar(this.playerid, varname);
}
GetPVarsUpperIndex() {
return SampFunctions.GetPVarsUpperIndex(this.playerid);
}
GetPVarNameAtIndex(index, ret_len) {
return SampFunctions.GetPVarNameAtIndex(this.playerid, index, ret_len);
}
GetPVarType(varname) {
return SampFunctions.GetPVarType(this.playerid, varname);
}
SetPlayerChatBubble(text, color, drawdistance, expiretime) {
return SampFunctions.SetPlayerChatBubble(this.playerid, text, color, drawdistance, expiretime);
}
PutPlayerInVehicle(vehicleid, seatid) {
return SampFunctions.PutPlayerInVehicle(this.playerid, vehicleid, seatid);
}
GetPlayerVehicleID() {
return SampFunctions.GetPlayerVehicleID(this.playerid);
}
GetPlayerVehicleSeat() {
return SampFunctions.GetPlayerVehicleSeat(this.playerid);
}
RemovePlayerFromVehicle() {
return SampFunctions.RemovePlayerFromVehicle(this.playerid);
}
TogglePlayerControllable(toggle) {
return SampFunctions.TogglePlayerControllable(this.playerid, toggle);
}
PlayerPlaySound(soundid, x, y, z) {
return SampFunctions.PlayerPlaySound(this.playerid, soundid, x, y, z);
}
ApplyAnimation(animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync) {
return SampFunctions.ApplyAnimation(this.playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync);
}
ClearAnimations(forcesync) {
return SampFunctions.ClearAnimations(this.playerid, forcesync);
}
GetPlayerAnimationIndex() {
return SampFunctions.GetPlayerAnimationIndex(this.playerid);
}
GetPlayerSpecialAction() {
return SampFunctions.GetPlayerSpecialAction(this.playerid);
}
SetPlayerSpecialAction(actionid) {
return SampFunctions.SetPlayerSpecialAction(this.playerid, actionid);
}
DisableRemoteVehicleCollisions(disable) {
return SampFunctions.DisableRemoteVehicleCollisions(this.playerid, disable);
}
SetPlayerCheckpoint(x, y, z, size) {
return SampFunctions.SetPlayerCheckpoint(this.playerid, x, y, z, size);
}
DisablePlayerCheckpoint() {
return SampFunctions.DisablePlayerCheckpoint(this.playerid);
}
SetPlayerRaceCheckpoint(type, x, y, z, nextx, nexty, nextz, size) {
return SampFunctions.SetPlayerRaceCheckpoint(this.playerid, type, x, y, z, nextx, nexty, nextz, size);
}
DisablePlayerRaceCheckpoint() {
return SampFunctions.DisablePlayerRaceCheckpoint(this.playerid);
}
SetPlayerWorldBounds(x_max, x_min, y_max, y_min) {
return SampFunctions.SetPlayerWorldBounds(this.playerid, x_max, x_min, y_max, y_min);
}
SetPlayerMarkerForPlayer(showplayerid, color) {
return SampFunctions.SetPlayerMarkerForPlayer(this.playerid, showplayerid, color);
}
ShowPlayerNameTagForPlayer(showplayerid, show) {
return SampFunctions.ShowPlayerNameTagForPlayer(this.playerid, showplayerid, show);
}
SetPlayerMapIcon(iconid, x, y, z, markertype, color, style) {
return SampFunctions.SetPlayerMapIcon(this.playerid, iconid, x, y, z, markertype, color, style);
}
RemovePlayerMapIcon(iconid) {
return SampFunctions.RemovePlayerMapIcon(this.playerid, iconid);
}
AllowPlayerTeleport(allow) {
return SampFunctions.AllowPlayerTeleport(this.playerid, allow);
}
SetPlayerCameraPos(x, y, z) {
return SampFunctions.SetPlayerCameraPos(this.playerid, x, y, z);
}
SetPlayerCameraLookAt(x, y, z, cut) {
return SampFunctions.SetPlayerCameraLookAt(this.playerid, x, y, z, cut);
}
SetCameraBehindPlayer() {
return SampFunctions.SetCameraBehindPlayer(this.playerid);
}
GetPlayerCameraPos() {
return SampFunctions.GetPlayerCameraPos(this.playerid);
}
GetPlayerCameraFrontVector() {
return SampFunctions.GetPlayerCameraFrontVector(this.playerid);
}
GetPlayerCameraMode() {
return SampFunctions.GetPlayerCameraMode(this.playerid);
}
EnablePlayerCameraTarget(enable) {
return SampFunctions.EnablePlayerCameraTarget(this.playerid, enable);
}
GetPlayerCameraTargetObject() {
return SampFunctions.GetPlayerCameraTargetObject(this.playerid);
}
GetPlayerCameraTargetVehicle() {
return SampFunctions.GetPlayerCameraTargetVehicle(this.playerid);
}
GetPlayerCameraTargetPlayer() {
return SampFunctions.GetPlayerCameraTargetPlayer(this.playerid);
}
GetPlayerCameraTargetActor() {
return SampFunctions.GetPlayerCameraTargetActor(this.playerid);
}
GetPlayerCameraAspectRatio() {
return SampFunctions.GetPlayerCameraAspectRatio(this.playerid);
}
GetPlayerCameraZoom() {
return SampFunctions.GetPlayerCameraZoom(this.playerid);
}
AttachCameraToObject(objectid) {
return SampFunctions.AttachCameraToObject(this.playerid, objectid);
}
AttachCameraToPlayerObject(playerobjectid) {
return SampFunctions.AttachCameraToPlayerObject(this.playerid, playerobjectid);
}
InterpolateCameraPos(FromX, FromY, FromZ, ToX, ToY, ToZ, time, cut) {
return SampFunctions.InterpolateCameraPos(this.playerid, FromX, FromY, FromZ, ToX, ToY, ToZ, time, cut);
}
InterpolateCameraLookAt(FromX, FromY, FromZ, ToX, ToY, ToZ, time, cut) {
return SampFunctions.InterpolateCameraLookAt(this.playerid, FromX, FromY, FromZ, ToX, ToY, ToZ, time, cut);
}
IsPlayerConnected() {
return SampFunctions.IsPlayerConnected(this.playerid);
}
IsPlayerInVehicle(vehicleid) {
return SampFunctions.IsPlayerInVehicle(this.playerid, vehicleid);
}
IsPlayerInAnyVehicle() {
return SampFunctions.IsPlayerInAnyVehicle(this.playerid);
}
IsPlayerInCheckpoint() {
return SampFunctions.IsPlayerInCheckpoint(this.playerid);
}
IsPlayerInRaceCheckpoint() {
return SampFunctions.IsPlayerInRaceCheckpoint(this.playerid);
}
SetPlayerVirtualWorld(worldid) {
return SampFunctions.SetPlayerVirtualWorld(this.playerid, worldid);
}
GetPlayerVirtualWorld() {
return SampFunctions.GetPlayerVirtualWorld(this.playerid);
}
EnableStuntBonusForPlayer(enable) {
return SampFunctions.EnableStuntBonusForPlayer(this.playerid, enable);
}
TogglePlayerSpectating(toggle) {
return SampFunctions.TogglePlayerSpectating(this.playerid, toggle);
}
PlayerSpectatePlayer(targetplayerid, mode) {
return SampFunctions.PlayerSpectatePlayer(this.playerid, targetplayerid, mode);
}
PlayerSpectateVehicle(targetvehicleid, mode) {
return SampFunctions.PlayerSpectateVehicle(this.playerid, targetvehicleid, mode);
}
StartRecordingPlayerData(recordtype, recordname) {
return SampFunctions.StartRecordingPlayerData(this.playerid, recordtype, recordname);
}
StopRecordingPlayerData() {
return SampFunctions.StopRecordingPlayerData(this.playerid);
}
SelectTextDraw(hovercolor) {
return SampFunctions.SelectTextDraw(this.playerid, hovercolor);
}
CancelSelectTextDraw() {
return SampFunctions.CancelSelectTextDraw(this.playerid);
}
CreateExplosionForPlayer(X, Y, Z, type, Radius) {
return SampFunctions.CreateExplosionForPlayer(this.playerid, X, Y, Z, type, Radius);
}
SendClientCheck(type, memAddr, memOffset, byteCount) {
return SampFunctions.SendClientCheck(this.playerid, type, memAddr, memOffset, byteCount);
}
SetVehicleParamsForPlayer(vehicleid, objective, doorslocked) {
return SampFunctions.SetVehicleParamsForPlayer(vehicleid, this.playerid, objective, doorslocked);
}
}
exports.SampPlayerNativeFunctions = SampPlayerNativeFunctions;
//# sourceMappingURL=SampPlayerNativeFunctions.js.map