print(string text)
sleep(int ms)
exit()
setServerAddress(string address)
setBotNick(string nick)
setBotPosition(float x, float y, float z)
setBotQuaternion(float w, float x, float y, float z)
setBotRotation(float angle)
setBotHealth(float health)
setBotArmor(float armor)
setNetworkAdapter(string ip)
setWindowTitle(string title)
lockWindowTitle(bool lock)
setWindowText(string text)
lockWindowText(bool lock)
flashWindow()
showWindow()
setRate(int rate, int value)
runCommand(string cmd)
reconnect(int ms)
spawn()
updateSync()
resetConnectTimeout()
setBotVehicle(int id, int seat = 0)
coordStart(float x, float y, float z, int delay, float step, bool off_at_spawn)
coordStop()
setLogPath(string path)
setAutoPick(bool state)
proxyConnect(string address, string username, string password)
proxyDisconnect()
setBotMoney(int money)
registerHandler(string event, function handler)
destroyHandlers()
int id = getBotId()
string ip = getServerAddress()
string name = getServerName()
string nick = getBotNick()
int score = getBotScore()
int ping = getBotPing()
bool spawned = isBotSpawned()
int interior = getBotInterior()
int skin = getBotSkin()
float x, float y, float z = getBotPosition()
float w, float x, float y, float z = getBotQuaternion()
float angle = getBotRotation()
float health = getBotHealth()
float armor = getBotArmor()
string ip = getNetworkAdapter()
string args = getCommandLineArgs()
bool connected = isBotConnected()
int vehicle = getBotVehicle()
bool active = isCoordActive()
string path = getPath(string additional)
bool connected = isProxyConnected()
int money = getBotMoney()
int count = getPlayerCount(bool stream = false)
bool connected = isPlayerConnected(int id)
bool exist = doesPlayerExist(int id)
bool exist = doesVehicleExist(int id)
bool exist = doesPickupExist(int id)
bool exist = doesLabelExist(int id)
table players = getAllPlayers()
table vehicles = getAllVehicles()
table pickups = getAllPickups()
table labels = getAllLabels()
table player = getPlayer(int id)
table vehicle = getVehicle(int id)
table pickup = getPickup(int id)
table label = getLabel(int id)
* не вернет ничего, если не существует
getAllPlayers() = {
[id] = {
int score,
int ping,
string nick,
bool exist,
int skin,
int color,
table position
},
...
}
getAllVehicles() = {
[id] = {
float health,
int model,
string name,
string number,
bool engine,
bool lights,
bool alarm,
bool locked,
table position
},
...
}
getAllPickups() = {
[id] = {
int model,
int type,
table position
},
...
}
getAllLabels() = {
[id] = {
float distance,
int color,
bool test_los,
int player_id,
int vehicle_id,
string text,
table position
},
...
}
** рейты:
RATE_SLEEP
RATE_CONNECT
RATE_RECONNECT
RATE_NETWORK
RATE_LUA
RATE_SPECTATE
RATE_ONFOOT
RATE_INCAR
RATE_AIM