# ReSA AL Loader - Lua API reference

AL Loader (Alyn Lua Loader) is the Lua script loader built into ReSA
Multiplayer - its own game engine and its own multiplayer engine that connects
to SA-MP and open.mp servers on Android, iOS and PC. Most scripts written for
MonetLoader and MoonLoader run unchanged: the script functions, events,
`samp.events`, mimgui, inicfg and the RakNet functions have the same names.

This file is the complete reference in one place: every global, event,
function (grouped by category, with parameters, return values and opcodes),
bundled library and guide. Give it to an AI assistant to help you write or
port scripts. The latest copy is always at https://resa-mp.com/al-loader.

## Facts to keep in mind

- **Runtime:** LuaJIT - Lua 5.1 with the `ffi` and `bit` libraries. On iOS
  the JIT compiler is off, so very heavy loops run slower there.
- **One script, every platform.** The same `.lua` runs on Android, iOS and
  PC, online and offline. Check `AL_PLATFORM` (`"android"`, `"ios"` or
  `"windows"`) for anything platform-specific.
- **No memory access or hooks.** `readMemory`, `writeMemory`,
  `getModuleHandle`, hooking libraries and fixed addresses do not exist -
  ReSA is its own engine. Use only the functions listed here. Scripts that
  need PC-only plugins (CLEO, SAMPFUNCS) cannot run.
- **Structure:** `main()` runs as the script's first coroutine. Always
  `wait()` inside loops (`wait(0)` = one frame, `wait(-1)` = stay loaded
  forever); a loop without `wait` freezes the game.
- **Touch and keyboard:** `onTouch` works everywhere; on PC the mouse comes
  in as touch 0. Multiply ImGui sizes by `AL_DPI_SCALE`.

## Installing a script

- Scripts live in `mods/AL Loader/scripts/` inside the game files. Only
  `.lua` and `.luac` files placed directly in that folder are loaded (not
  in sub-folders, not in `mods/AL Loader/` itself).
- In the launcher: **Files** tab -> **Mods** -> **AL Loader** -> **scripts** ->
  **Add from device**, then start (or restart) the game. On PC,
  **Settings -> General -> Mods -> Open scripts folder** opens the folder.
- Libraries a script `require`s go in `mods/AL Loader/lib/` (the bundled
  ones are replaced on updates). Saved settings go to
  `mods/AL Loader/config/`.
- Errors and loader output: `mods/AL Loader/logs/alloader.log`, or the
  **Script Manager** (install it from Recommended scripts, then type
  `/scripts` in the chat): Running / Not running / Log / Shell.
- AL Loader is on by default; the switch is in **Settings -> General -> Mods**.

## Contents

1. Globals
2. Events
3. Functions by category
4. Libraries (`require`)
5. Guides

## 1. Globals

| Name | Type | Description |
|---|---|---|
| `AL_VERSION` | int | AL Loader version as major*1000000 + minor*1000 + patch. |
| `AL_PLATFORM` | string | "android", "ios" or "windows". |
| `AL_DPI_SCALE` | number | UI scale for this screen (1 on a desktop monitor, about 2 on a phone). Multiply ImGui sizes by it. |
| `AL_LIBRARY` | string | Path of the AL Loader library itself; ffi.load(AL_LIBRARY) reaches its C exports (cimgui). |
| `MONET_DPI_SCALE` | number | Same as AL_DPI_SCALE, for scripts written for MonetLoader. |
| `MONET_VERSION` | int | Same as AL_VERSION, for scripts written for MonetLoader. |

## 2. Events

Define a function with the event's name in your script, or add one with `addEventHandler`.

- `onD3DPresent`
- `onExitScript`
- `onQuitGame`
- `onReceivePacket`
- `onReceiveRpc`
- `onScriptLoad`
- `onScriptMessage`
- `onScriptTerminate`
- `onSendPacket`
- `onSendRpc`
- `onSystemInitialized`
- `onSystemMessage`
- `onTouch`

## 3. Functions by category

1725 functions, one per line: `name(param: type, ...) -> return types`. No `->` means the function returns nothing; `...` takes any number of arguments. The opcode, when there is one, is the script command the function wraps.

- Game (440)
- Vehicles (376)
- Peds (251)
- Objects (121)
- SA-MP (83)
- Text (79)
- Player (78)
- World (45)
- Camera (43)
- Rendering (41)
- RakNet (37)
- Input (34)
- Audio (33)
- Script (33)
- Radar & markers (25)
- Data (6)

### Game

- `activateGarage(garageId: string)` - opcode 0299
- `activateMenuItem(self: int, row: int, state: bool)` - opcode 08D9
- `activatePimpCheat(state: bool)` - opcode 0A3D
- `activateSaveMenu()` - opcode 03D8
- `addAttractor(x: number, y: number, z: number, angle: number, _p5: number, sequence: int) -> int` - opcode 061D
- `addBigGunFlash(fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number)` - opcode 058A
- `addBlood(x: number, y: number, z: number, offsetX: number, offsetY: number, offsetZ: number, density: int, handle: int)` - opcode 09B8
- `addButtonFlag(widgetId: int, flag: int)` - opcode 0A62
- `addHospitalRestart(x: number, y: number, z: number, heading: number, townId: int)` - opcode 016C
- `addNextMessageToPreviousBriefs(state: bool)` - opcode 09C1
- `addPoliceRestart(x: number, y: number, z: number, heading: number, townId: int)` - opcode 016D
- `addPriceModifier(itemId: int, modifier: int)` - opcode 08C8
- `addSetPiece(type: int, fromX: number, fromY: number, toX: number, toY: number, spawnPoliceAAtX: number, spawnPoliceAAtY: number, headedTowardsAAtX: number, headedTowardsAAtY: number, spawnPoliceBAtX: number, spawnPoliceBAtY: number, headedTowardsBAtX: number, headedTowardsBAtY: number)` - opcode 04F8
- `addShopItem(itemName: string, price: int)` - opcode 0A6A
- `addSmokeParticle(x: number, y: number, z: number, velocityX: number, velocityY: number, velocityZ: number, red: int, green: int, blue: int, alpha: int, size: number, lastFactor: number)` - opcode 095C
- `addSparks(x: number, y: number, z: number, velocityX: number, velocityY: number, velocityZ: number, density: int)` - opcode 08EB
- `addSphere(x: number, y: number, z: number, radius: number) -> int` - opcode 03BC
- `addStuntJump(startX: number, startY: number, startZ: number, startRadiusX: number, startRadiusY: number, startRadiusZ: number, finishX: number, finishY: number, finishZ: number, finishRadiusX: number, finishRadiusY: number, finishRadiusZ: number, cameraX: number, cameraY: number, cameraZ: number, reward: int)` - opcode 0814
- `al_cp1251_to_utf8(cp1251: string)`
- `al_utf8_to_cp1251(utf8: string)`
- `allowPauseInWidescreen(state: bool)` - opcode 0A48
- `alterWantedLevel(self: int, wantedLevel: int)` - opcode 010D
- `alterWantedLevelNoDrop(self: int, wantedLevel: int)` - opcode 010E
- `areCreditsFinished() -> bool` - opcode 0436
- `areMeasurementsInMetres() -> bool` - opcode 0424
- `areSubtitlesSwitchedOn() -> bool` - opcode 09C8
- `attachAnimsToModel(pedModelId: int, animationFile: string)` - opcode 08E8
- `attachTrailerToCab(self: int, cab: int)` - opcode 0893
- `autoSave()` - opcode 0A72
- `buyItem(itemId: int)` - opcode 0790
- `cancelOverrideRestart()` - opcode 01F6
- `canTriggerGangWarWhenOnAMission(state: bool)` - opcode 08A3
- `changeGarageType(garageId: string, type: int)` - opcode 02FA
- `changePlaybackToUseAi(self: int)` - opcode 099B
- `clearArea(x: number, y: number, z: number, radius: number, clearParticles: bool)` - opcode 0395
- `clearAttractor(self: int)` - opcode 061E
- `clearCutscene()` - opcode 02EA
- `clearExtraColours(withFade: bool)` - opcode 04FA
- `clearHelp()` - opcode 03E6
- `clearLoadedShop()` - opcode 087C
- `clearLookAt(self: int)` - opcode 0647
- `clearOnscreenCounter(counter: int)` - opcode 0151
- `clearRelationship(relationshipType: int, ofPedType: int, toPedType: int)` - opcode 0747
- `clearSequenceTask(self: int)` - opcode 061B
- `clearSkip()` - opcode 0951
- `clearWantedLevel(self: int)` - opcode 0110
- `clearWantedLevelInGarage()` - opcode 09D4
- `closeGarage(garageId: string)` - opcode 0361
- `closeSequenceTask(self: int)` - opcode 0616
- `connectLods(self: int, lodObject: int)` - opcode 0827
- `convert3DCoordsToScreen(x: number, y: number, z: number)`
- `convert3DCoordsToScreenEx()`
- `convertGameScreenCoordsToWindowScreenCoords(gx: number, gy: number)`
- `convertMatrixToQuaternion(rx: number, ry: number, rz: number, fx: number, fy: number, fz: number, ux: number, uy: number, uz: number)`
- `convertMetresToFeet(meters: number) -> number` - opcode 0425
- `convertMetresToFeetInt(meters: int) -> int` - opcode 042D
- `convertQuaternionToMatrix(w: number, x: number, y: number, z: number)`
- `convertWindowScreenCoordsToGameScreenCoords(wx: number, wy: number)`
- `copyGroupDecisionMaker(mask: int) -> int` - opcode 07E6
- `createBirds(xFrom: number, yFrom: number, zFrom: number, xTo: number, yTo: number, zTo: number, quantity: int, type: int)` - opcode 0876
- `createDirectory(path: string)`
- `createFxSystem(name: string, x: number, y: number, z: number, type: int) -> int` - opcode 064B
- `createGroup(defaultTaskAllocator: int) -> int` - opcode 062F
- `createMenu(header: string, topLeftX: number, topLeftY: number, width: number, numColumns: int, interactive: bool, background: bool, alignment: int) -> int` - opcode 08D4
- `createMenuGrid(header: string, topLeftX: number, topLeftY: number, width: number, numColumns: int, interactive: bool, background: bool, alignment: int) -> int` - opcode 0964
- `createSearchlight(x: number, y: number, z: number, xPoint: number, yPoint: number, zPoint: number, radius: number, radiusPoint: number) -> int` - opcode 06B1
- `createSwatRope(pedType: int, modelId: int, x: number, y: number, z: number) -> int` - opcode 0503
- `deactivateGarage(garageId: string)` - opcode 02B9
- `declareMissionFlag(flag: int)` - opcode 0180
- `decrementFloatStat(statId: int, value: number)` - opcode 0626
- `decrementIntStat(statId: int, value: int)` - opcode 0625
- `deleteMenu(self: int)` - opcode 08DA
- `deleteSearchlight(self: int)` - opcode 06B2
- `detachTrailerFromCab(self: int, cab: int)` - opcode 07AC
- `disableAllEntryExits(state: bool)` - opcode 08E7
- `displayHud(state: bool)` - opcode 0826
- `displayNonMinigameHelpMessages(state: bool)` - opcode 0A44
- `displayNthOnscreenCounterWithString(counter: int, display: int, slot: int, text: string)` - opcode 04F7
- `displayOnscreenCounterWithString(counter: int, display: int, text: string)` - opcode 03C4
- `do2dRectanglesCollide(rectangle1PositionX: number, rectangle1PositionY: number, rectangle1SizeX: number, rectangle1SizeY: number, rectangle2PositionX: number, rectangle2PositionY: number, rectangle2SizeX: number, rectangle2SizeY: number) -> bool` - opcode 05A5
- `doesDecisionMakerExist(handle: int) -> bool` - opcode 09F2
- `doesDirectoryExist(path: string)`
- `doesFileExist(path: string)`
- `doesGroupExist(handle: int) -> bool` - opcode 07FD
- `doesSearchlightExist(handle: int) -> bool` - opcode 06B3
- `doFade(time: int, direction: int)` - opcode 016A
- `doMissionSkip() -> bool, int?, int?` - opcode 0A57
- `doWeaponStuffAtStartOf2pGame()` - opcode 09F8
- `enableAmbientCrime(state: bool)` - opcode 09D2
- `enableBurglaryHouses(state: bool)` - opcode 09E6
- `enableConversation(handle: int, state: bool)` - opcode 089C
- `enableCraneControls(up: bool, down: bool, release: bool)` - opcode 0898
- `extendPatrolRoute(x: number, y: number, z: number, animationName: string, animationFile: string)` - opcode 0755
- `extendRoute(x: number, y: number, z: number)` - opcode 05D7
- `failCurrentMission()` - opcode 045C
- `failKillFrenzy()` - opcode 09C2
- `findMaxNumberOfGroupMembers() -> int` - opcode 0956
- `findNumberTagsTagged() -> int` - opcode 08E1
- `finishSettingUpConversation()` - opcode 0719
- `finishSettingUpConversationNoSubtitles()` - opcode 0A47
- `flushPatrolRoute()` - opcode 0754
- `flushRoute()` - opcode 05D6
- `forceBigMessageAndCounter(state: bool)` - opcode 09EE
- `forceDeathRestart()` - opcode 0970
- `gameClock()`
- `get2dLinesIntersectPoint(line1StartX: number, line1StartY: number, line1EndX: number, line1EndY: number, line2StartX: number, line2StartY: number, line2EndX: number, line2EndY: number) -> bool, number?, number?` - opcode 05B0
- `getActiveInterior() -> int` - opcode 077E
- `getAngleBetween2dVectors(x1: number, y1: number, x2: number, y2: number) -> number` - opcode 05A4
- `getBeatProximity(_p1: int) -> int, int, int` - opcode 07B1
- `getBeatTrackStatus() -> int` - opcode 0953
- `getCityFromCoords(x: number, y: number, z: number) -> int` - opcode 07EF
- `getClosestStraightRoad(x: number, y: number, z: number, minDist: number, maxDist: number) -> number, number, number, number, number, number, number` - opcode 04B9
- `getClothesItem(self: int, bodyPart: int) -> int, int` - opcode 08F7
- `getControllerMode() -> int` - opcode 0293
- `getCurrentDate() -> int, int` - opcode 0835
- `getCurrentDayOfWeek() -> int` - opcode 07D0
- `getCurrentLanguage() -> int` - opcode 09FB
- `getCutsceneOffset() -> number, number, number` - opcode 08D1
- `getDistanceBetweenCoords2d(fromX: number, fromY: number, toX: number, toZ: number) -> number` - opcode 0509
- `getDistanceBetweenCoords3d(fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number) -> number` - opcode 050A
- `getDoorAngleRatio(self: int, door: int) -> number` - opcode 095F
- `getFadingStatus() -> bool` - opcode 016B
- `getFloatStat(statId: int) -> number` - opcode 0653
- `getGameDirectory()`
- `getGroupMember(self: int, slotId: int) -> int` - opcode 092B
- `getGroupSize(self: int) -> int, int` - opcode 07F6
- `getHeadingFromVector2d(x: number, y: number) -> number` - opcode 0604
- `getHudColour(hudObject: int) -> int, int, int, int` - opcode 0904
- `getIntStat(statId: int) -> int` - opcode 0652
- `getItemInShop(nth: int) -> int` - opcode 0760
- `getLoadedShop() -> string` - opcode 07B0
- `getMaximumNumberOfPassengers(self: int) -> int` - opcode 01EA
- `getMaxWantedLevel() -> int` - opcode 050F
- `getMenuItemAccepted(self: int) -> int` - opcode 08D8
- `getMenuItemSelected(self: int) -> int` - opcode 08D7
- `getMissionNum() -> bool, int?` - opcode 0A58
- `getMissionPage() -> bool, int?` - opcode 0A59
- `getModelDimensions(modelId: int) -> number, number, number, number, number, number` - opcode 07E4
- `getMoonloaderVersion()`
- `getNameOfItem(itemId: int) -> string` - opcode 078C
- `getNearestTagPosition(xCoord: number, yCoord: number, zCoord: number) -> number, number, number` - opcode 07A6
- `getNumAvailablePaintjobs(self: int) -> int` - opcode 06EC
- `getNumberOfFollowers(self: int) -> int` - opcode 046D
- `getNumberOfItemsInShop() -> int` - opcode 075F
- `getNumberOfPassengers(self: int) -> int` - opcode 01E9
- `getPadState(pad: int, buttonId: int) -> int` - opcode 00E2
- `getParkingNodeInArea(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number) -> number, number, number` - opcode 0810
- `getPcMouseMovement() -> number, number` - opcode 0A4A
- `getPercentageTaggedInArea(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number) -> int` - opcode 0702
- `getPositionOfAnalogueSticks(pad: int) -> int, int, int, int` - opcode 0494
- `getPriceOfItem(itemId: int) -> int` - opcode 0761
- `getProgressPercentage() -> number` - opcode 058C
- `getRadioChannel() -> int` - opcode 051E
- `getScreenResolution()`
- `getSequenceProgress(self: int) -> int` - opcode 0646
- `getSequenceProgressRecursive(self: int) -> int, int` - opcode 07A4
- `getStringWidth(entry: string) -> int` - opcode 09FD
- `getStringWidthWithNumber(gxtEntry: string, number: int) -> int` - opcode 0A08
- `getTerritoryUnderControlPercentage() -> int` - opcode 08E2
- `getUserOfClosestMapAttractor(x: number, y: number, z: number, radius: number, modelId: int, attractorName: string) -> int` - opcode 091C
- `getWaterHeightAtCoords(x: number, y: number, ignoreWaves: bool) -> number` - opcode 092E
- `getWeapontypeModel(weaponType: int) -> int` - opcode 0781
- `getWeapontypeSlot(weaponType: int) -> int` - opcode 0782
- `getWheelieStats(self: int) -> int, number, int, number, int, number` - opcode 04FC
- `getWorkingDirectory()`
- `grabEntityOnWinch(self: int) -> int, int, int` - opcode 078B
- `hasAnimationLoaded(animationFile: string) -> bool` - opcode 04EE
- `hasCutsceneFinished() -> bool` - opcode 02E9
- `hasCutsceneLoaded() -> bool` - opcode 06B9
- `hasDeatharrestBeenExecuted() -> bool` - opcode 0112
- `hasGameJustReturnedFromFrontend() -> bool` - opcode 09FA
- `hasLanguageChanged() -> bool` - opcode 0A0F
- `hasModelLoaded(modelId: int) -> bool` - opcode 0248
- `hasSaveGameFinished() -> bool` - opcode 03D9
- `highlightMenuItem(self: int, row: int, state: bool)` - opcode 0A23
- `ignoreHeightDifferenceFollowingNodes(self: int, state: bool)` - opcode 09F4
- `import(str_path: string)`
- `incrementFloatStat(statId: int, value: number)` - opcode 0624
- `incrementFloatStatNoMessage(statId: int, value: number)` - opcode 0A1F
- `incrementIntStat(statId: int, value: int)` - opcode 0623
- `incrementIntStatNoMessage(statId: int, value: int)` - opcode 0A10
- `isAreaOccupied(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, solid: bool, car: bool, char_: bool, object: bool, particle: bool) -> bool` - opcode 0339
- `isButtonPressed(pad: int, buttonId: int) -> bool` - opcode 00E1
- `isCleoLoaded()`
- `isConversationAtNode(handle: int, speech: string) -> bool` - opcode 071A
- `isFinalbuild() -> bool` - opcode 0A65
- `isFlameInAngledArea2d(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 072D
- `isFlameInAngledArea3d(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 072E
- `isGamePaused()`
- `isGangWarFightingGoingOn() -> bool` - opcode 0A03
- `isGangWarGoingOn() -> bool` - opcode 087A
- `isGarageClosed(garageId: string) -> bool` - opcode 03B1
- `isGarageOpen(garageId: string) -> bool` - opcode 03B0
- `isGroupLeader(self: int, handle: int) -> bool` - opcode 06EF
- `isGroupMember(self: int, handle: int) -> bool` - opcode 06EE
- `isHelpMessageBeingDisplayed() -> bool` - opcode 08FE
- `isLineOfSightClear(fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number, buildings: bool, cars: bool, chars: bool, objects: bool, particles: bool) -> bool` - opcode 06BD
- `isMessageBeingDisplayed() -> bool` - opcode 076F
- `isMinigameInProgress() -> bool` - opcode 09BE
- `isModelAvailable(modelId: int) -> bool` - opcode 0488
- `isModelInCdimage(modeId: int) -> bool` - opcode 07DE
- `isMouseUsingVerticalInversion() -> bool` - opcode 0A4C
- `isNextStationAllowed(self: int) -> bool` - opcode 0A06
- `isNightVisionActive() -> bool` - opcode 099D
- `isOpcodesAvailable()`
- `isPauseMenuActive()`
- `isPcUsingJoypad() -> bool` - opcode 0A4B
- `isPcVersion() -> bool` - opcode 0485
- `isPointObscuredByAMissionEntity(x: number, y: number, z: number, radiusX: number, radiusY: number, radiusZ: number) -> bool` - opcode 038A
- `isPointOnScreen(x: number, y: number, z: number, radius: number) -> bool` - opcode 00C2
- `isProceduralInteriorActive(interiorId: int) -> bool` - opcode 0867
- `isProjectileInArea(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number) -> bool` - opcode 02EE
- `isRelationshipSet(ofPedType: int, toPedType: int, relationshipType: int) -> bool` - opcode 07E8
- `isSkipCutsceneButtonPressed() -> bool` - opcode 08D0
- `isThisHelpMessageBeingDisplayed(gxt: string) -> bool` - opcode 0A2A
- `isTrailerAttachedToCab(self: int, cab: int) -> bool` - opcode 07AB
- `isWantedLevelGreater(self: int, wantedLevel: int) -> bool` - opcode 010F
- `isWidescreenOnInOptions() -> bool` - opcode 0A2B
- `killFxSystem(self: int)` - opcode 0650
- `killFxSystemNow(self: int)` - opcode 0976
- `limitAngle(value: number) -> number` - opcode 0656
- `loadAllModelsNow()` - opcode 038B
- `loadAndLaunchMissionInternal(index: int)` - opcode 0417
- `loadCutscene(name: string)` - opcode 02E4
- `loadGroupDecisionMaker(type: int) -> int` - opcode 06AE
- `loadPathNodesInArea(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number)` - opcode 0606
- `loadPrices(sectionName: string)` - opcode 075D
- `loadScene(x: number, y: number, z: number)` - opcode 03CB
- `loadSceneInDirection(x: number, y: number, z: number, heading: number)` - opcode 0A0B
- `loadShop(name: string)` - opcode 075E
- `localClock()`
- `lockDoor(self: int, state: bool)` - opcode 0905
- `manageAllPopulation()` - opcode 0A13
- `markModelAsNoLongerNeeded(modelId: int)` - opcode 0249
- `markRoadNodeAsDontWander(x: number, y: number, z: number)` - opcode 0994
- `moveSearchlightBetweenCoords(self: int, fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number, speed: number)` - opcode 06B4
- `null()`
- `openGarage(garageId: string)` - opcode 0360
- `openSequenceTask() -> int` - opcode 0615
- `overrideNextRestart(x: number, y: number, z: number, heading: number)` - opcode 016E
- `pauseCurrentBeatTrack(state: bool)` - opcode 0991
- `performSequenceTask(self: int, sequence: int)` - opcode 0618
- `performSequenceTaskFromProgress(self: int, sequence: int, _p3: int, _p4: int)` - opcode 07A0
- `playAndKillFxSystem(self: int)` - opcode 064F
- `playBeatTrack()` - opcode 0954
- `playFxSystem(self: int)` - opcode 064C
- `playMissionPassedTune(soundId: int)` - opcode 0394
- `pointSearchlightAtCoord(self: int, x: number, y: number, z: number, speed: number)` - opcode 06B5
- `preloadBeatTrack(trackId: int)` - opcode 0952
- `processLineOfSight()`
- `randomPassengerSay(self: int, speechId: int)` - opcode 09AB
- `readKillFrenzyStatus() -> int` - opcode 01FA
- `registerBestPosition(statId: int, position: int)` - opcode 0582
- `registerFloatStat(statId: int, value: number)` - opcode 0628
- `registerIntStat(statId: int, value: int)` - opcode 0627
- `registerMissionGiven()` - opcode 0317
- `registerMissionPassed(key: string)` - opcode 0318
- `registerOddjobMissionPassed()` - opcode 0595
- `releaseEntityFromWinch(self: int)` - opcode 0789
- `releasePathNodes()` - opcode 0607
- `releaseWeaponLock()` - opcode 0A8F
- `removeAnimation(animationFile: string)` - opcode 04EF
- `removeButtonFlag(widgetId: int, flag: int)` - opcode 0A63
- `removeDecisionMaker(self: int)` - opcode 065C
- `removeGroup(self: int)` - opcode 0632
- `removeIpl(iplName: string)` - opcode 0777
- `removeIplDiscreetly(iplName: string)` - opcode 0778
- `removeOilPuddlesInArea(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number)` - opcode 07DF
- `removePriceModifier(itemId: int)` - opcode 08C9
- `removeRcBuggy()` - opcode 04DB
- `removeSphere(self: int)` - opcode 03BD
- `requestAnimation(animationFile: string)` - opcode 04ED
- `requestCollision(x: number, y: number)` - opcode 04E4
- `requestIpl(iplName: string)` - opcode 0776
- `requestModel(modelId: int)` - opcode 0247
- `resetStuffUponResurrection()` - opcode 0974
- `restoreClock()` - opcode 0254
- `restoreClothesState()` - opcode 0794
- `setActiveMenuItem(self: int, row: int)` - opcode 090E
- `setAllTaxisHaveNitro(state: bool)` - opcode 0572
- `setArea51SamSite(state: bool)` - opcode 07A8
- `setAreaName(name: string)` - opcode 0A19
- `setClosestEntryExitFlag(x: number, y: number, radius: number, entryexitsFlag: int, state: bool)` - opcode 09B4
- `setCollectable1Total(amount: int)` - opcode 02ED
- `setCreateRandomCops(state: bool)` - opcode 099E
- `setCreateRandomGangMembers(state: bool)` - opcode 08EA
- `setCutsceneOffset(x: number, y: number, z: number)` - opcode 0244
- `setDarknessEffect(enable: bool, pitchBlack: int)` - opcode 0924
- `setDeatharrestState(state: bool)` - opcode 0111
- `setDeathWeaponsPersist(self: int, state: bool)` - opcode 0A27
- `setDrunkInputDelay(pad: int, delay: int)` - opcode 03FD
- `setEnableRcDetonate(state: bool)` - opcode 048A
- `setEnableRcDetonateOnContact(state: bool)` - opcode 04D6
- `setFadingColour(r: int, g: int, b: int)` - opcode 0169
- `setFloatStat(statId: int, value: number)` - opcode 062A
- `setFollowNodeThresholdDistance(self: int, range: number)` - opcode 0648
- `setFreeResprays(state: bool)` - opcode 0335
- `setGangWarsActive(state: bool)` - opcode 0879
- `setGangWeapons(gangId: int, weaponType1: int, weaponType2: int, weaponType3: int)` - opcode 0237
- `setGarageResprayFree(garageId: string, state: bool)` - opcode 093A
- `setGroupDecisionMaker(self: int, maskOrHandle: int)` - opcode 06AD
- `setGroupDefaultTaskAllocator(self: int, defaultTaskAllocator: int)` - opcode 07B3
- `setGroupFollowStatus(self: int, state: bool)` - opcode 0940
- `setGroupLeader(self: int, handle: int)` - opcode 0630
- `setGroupMember(self: int, handle: int)` - opcode 0631
- `setGroupSeparationRange(self: int, range: number)` - opcode 06F0
- `setGroupSequence(self: int, sequence: int)` - opcode 087D
- `setGunshotSenseRangeForRiot2(range: number)` - opcode 098A
- `setHeathazeEffect(state: bool)` - opcode 08FD
- `setHelpMessageBoxSize(size: int)` - opcode 0989
- `setInformRespectedFriends(self: int, radius: number, _p3: int)` - opcode 074E
- `setInfraredVision(state: bool)` - opcode 08B2
- `setInteriorVisible(areaId: int)` - opcode 04BB
- `setInterpolationParameters(_p1: number, time: int)` - opcode 0460
- `setIntStat(statId: int, value: int)` - opcode 0629
- `setLaRiots(state: bool)` - opcode 06C8
- `setMaxWantedLevel(wantedLevel: int)` - opcode 01F0
- `setMenuColumn(self: int, column: int, title: string, row0: string, row1: string, row2: string, row3: string, row4: string, row5: string, row6: string, row7: string, row8: string, row9: string, row10: string, row11: string)` - opcode 08DB
- `setMenuColumnOrientation(self: int, column: int, alignment: int)` - opcode 08D6
- `setMenuColumnWidth(self: int, column: int, width: int)` - opcode 09DB
- `setMenuItemWith2Numbers(self: int, column: int, row: int, gxt: string, number1: int, number2: int)` - opcode 08EF
- `setMenuItemWithNumber(self: int, column: int, row: int, gxt: string, number: int)` - opcode 08EE
- `setMessageFormatting(_p1: bool, margin: int, width: int)` - opcode 0912
- `setMinigameInProgress(state: bool)` - opcode 09BD
- `setMissionRespectTotal(totalRespect: int)` - opcode 0997
- `setMusicDoesFade(state: bool)` - opcode 043C
- `setNamedEntryExitFlag(name: string, entryexitsFlag: int, state: bool)` - opcode 098E
- `setNearClip(value: number)` - opcode 041D
- `setNextDesiredMoveState(moveState: int)` - opcode 07A1
- `setNightVision(state: bool)` - opcode 08B1
- `setNoResprays(state: bool)` - opcode 0A14
- `setOnlyCreateGangMembers(state: bool)` - opcode 0983
- `setOnscreenCounterFlashWhenFirstDisplayed(counter: int, state: bool)` - opcode 059C
- `setPetrolTankWeakpoint(self: int, state: bool)` - opcode 09C4
- `setPlaybackSpeed(self: int, speed: number)` - opcode 06FD
- `setPoolTableCoords(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 0830
- `setProgressTotal(maxProgress: int)` - opcode 030D
- `setRadioChannel(channel: int)` - opcode 041E
- `setRailtrackResistanceMult(mult: number)` - opcode 0A45
- `setRelationship(relationshipType: int, ofPedType: int, toPedType: int)` - opcode 0746
- `setRespawnPointForDurationOfMission(x: number, y: number, z: number)` - opcode 09FF
- `setSearchlightClipIfColliding(self: int, state: bool)` - opcode 0941
- `setSenseRange(self: int, meleeAccuracy: number)` - opcode 060F
- `setSequenceToRepeat(self: int, state: bool)` - opcode 0643
- `setSliderRange(widgetId: int, rangeX: number, rangeY: number)` - opcode 0A5F
- `setTagStatusInArea(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, percent: int)` - opcode 0703
- `setTaxiLights(self: int, state: bool)` - opcode 0216
- `setTotalNumberOfMissions(numMissions: int)` - opcode 042C
- `setUpConversationEndNodeWithSpeech(speech: string, speechSoundId: int)` - opcode 09AA
- `setUpConversationNodeWithSpeech(question: string, positiveAnswer: string, negativeAnswer: string, questionSoundId: int, positiveAnswerSoundId: int, negativeAnswerSoundId: int)` - opcode 09A4
- `setUpSkip(x: number, y: number, z: number, heading: number)` - opcode 0950
- `setUpSkipAfterMission(x: number, y: number, z: number, heading: number)` - opcode 09AF
- `setWantedMultiplier(multiplier: number)` - opcode 03C7
- `shakePad(pad: int, time: int, intensity: int)` - opcode 015B
- `showUpdateStats(state: bool)` - opcode 08F8
- `skipCutsceneEnd()` - opcode 0701
- `skipToNextAllowedStation(self: int)` - opcode 0A07
- `startCredits()` - opcode 0434
- `startCutscene()` - opcode 02E7
- `startKillFrenzy(text: string, weaponType: int, timeInMs: int, targetsNum: int, targetModel1: int, targetModel2: int, targetModel3: int, targetModel4: int, betaSoundsAndMessages: bool)` - opcode 01F9
- `startSettingUpConversation(handle: int)` - opcode 0717
- `stopBeatTrack()` - opcode 0955
- `stopCredits()` - opcode 0435
- `stopFxSystem(self: int)` - opcode 064E
- `storeClock()` - opcode 0253
- `storeClosestEntities(self: int)`
- `storeClothesState()` - opcode 0793
- `storeWantedLevel(self: int) -> int` - opcode 01C0
- `swapNearestBuildingModel(x: number, y: number, z: number, radius: number, fromModelId: int, toModelId: int)` - opcode 03B6
- `switchCopsOnBikes(state: bool)` - opcode 072C
- `switchDeathPenalties(state: bool)` - opcode 08DD
- `switchEmergencyServices(state: bool)` - opcode 06D0
- `switchEntryExit(interiorName: string, state: bool)` - opcode 07FB
- `switchRoadsBackToOriginal(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 091D
- `switchRoadsOff(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 01E8
- `switchRoadsOn(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 01E7
- `switchWidescreen(state: bool)` - opcode 02A3
- `syncWater()` - opcode 0971
- `takePhoto(_p1: bool)` - opcode 0A1E
- `taskAchieveHeading(handle: int, heading: number)` - opcode 05D4
- `taskAimGunAtCoord(handle: int, x: number, y: number, z: number, time: int)` - opcode 0667
- `taskClimb(handle: int, flag: bool)` - opcode 078F
- `taskCower(handle: int)` - opcode 05C3
- `taskDead(handle: int)` - opcode 0762
- `taskDie(handle: int)` - opcode 05BE
- `taskDieNamedAnim(handle: int, animationName: string, animationFile: string, frameDelta: number, time: int)` - opcode 0829
- `taskDiveAndGetUp(handle: int, directionX: number, directionY: number, timeOnGround: int)` - opcode 0673
- `taskDiveFromAttachmentAndGetUp(handle: int, time: int)` - opcode 06A5
- `taskDriveBy(handle: int, targetChar: int, targetVehicle: int, x: number, y: number, z: number, radius: number, style: int, rightHandCarSeat: bool, fireRate: int)` - opcode 0713
- `taskDrivePointRoute(char_: int, vehicle: int, speed: int)` - opcode 06BB
- `taskDrivePointRouteAdvanced(char_: int, vehicle: int, speed: number, _p4: int, _p5: int, _p6: int)` - opcode 07E7
- `taskDuck(handle: int, time: int)` - opcode 05C5
- `taskFallAndGetUp(handle: int, fallDown: bool, timeOnGround: int)` - opcode 05BB
- `taskFleePoint(handle: int, x: number, y: number, z: number, radius: number, time: int)` - opcode 05DA
- `taskFollowFootsteps(handle: int, target: int)` - opcode 0850
- `taskFollowPathNodesToCoord(handle: int, x: number, y: number, z: number, walkSpeed: int, time: int)` - opcode 05F5
- `taskFollowPathNodesToCoordWithRadius(handle: int, x: number, y: number, z: number, mode: int, time: int, radius: number)` - opcode 0A2E
- `taskFollowPatrolRoute(handle: int, walkSpeed: int, routeMode: int)` - opcode 0817
- `taskFollowPointRoute(handle: int, walkSpeed: int, flag: int)` - opcode 05D8
- `taskGoStraightToCoord(handle: int, x: number, y: number, z: number, moveState: int, time: int)` - opcode 05D3
- `taskGoToCoordAnyMeans(char_: int, x: number, y: number, z: number, walkSpeed: int, vehicle: int)` - opcode 0603
- `taskGoToCoordWhileAiming(char_: int, x: number, y: number, z: number, mode: int, turnRadius: number, stopRadius: number, target: int, xOffset: number, yOffset: number, zOffset: number)` - opcode 06C2
- `taskGoToCoordWhileShooting(char_: int, x: number, y: number, z: number, mode: int, turnRadius: number, stopRadius: number, target: int)` - opcode 0637
- `taskGreetPartner(handle: int, partner: int, _p3: number, _p4: int)` - opcode 0823
- `taskHandGesture(handle: int, target: int)` - opcode 0A1D
- `taskHandsUp(handle: int, time: int)` - opcode 05C4
- `taskJetpack(handle: int)` - opcode 07A7
- `taskJump(handle: int, state: bool)` - opcode 05BC
- `taskKindaStayInSamePlace(handle: int, state: bool)` - opcode 085B
- `taskLookAbout(handle: int, time: int)` - opcode 05C9
- `taskLookAtCoord(handle: int, x: number, y: number, z: number, time: int)` - opcode 06A9
- `taskPause(handle: int, time: int)` - opcode 05B9
- `taskPlayAnim(handle: int, animationName: string, animationFile: string, frameDelta: number, loop: bool, lockX: bool, lockY: bool, lockF: bool, time: int)` - opcode 0605
- `taskPlayAnimNonInterruptable(handle: int, animationName: string, animationFile: string, frameDelta: number, loop: bool, lockX: bool, lockY: bool, lockF: bool, time: int)` - opcode 0812
- `taskPlayAnimSecondary(handle: int, animationFile: string, animationName: string, frameDelta: number, loop: bool, lockX: bool, lockY: bool, lockF: bool, time: int)` - opcode 0A1A
- `taskPlayAnimWithFlags(handle: int, animationName: string, animationFile: string, frameDelta: number, loop: bool, lockX: bool, lockY: bool, lockF: bool, time: int, disableForce: bool, disableLockZ: bool)` - opcode 088A
- `taskSay(handle: int, phraseId: int)` - opcode 05C1
- `taskScratchHead(handle: int)` - opcode 05C8
- `taskSetIgnoreWeaponRangeFlag(handle: int, state: bool)` - opcode 099F
- `taskShakeFist(handle: int)` - opcode 05C2
- `taskShootAtCoord(handle: int, x: number, y: number, z: number, time: int)` - opcode 0668
- `taskSitDown(handle: int, time: int)` - opcode 06B0
- `taskSmartFleePoint(handle: int, x: number, y: number, z: number, radius: number, time: int)` - opcode 05DC
- `taskStandStill(handle: int, time: int)` - opcode 05BA
- `taskStayInSamePlace(handle: int, state: bool)` - opcode 0638
- `taskSwimToCoord(handle: int, x: number, y: number, z: number)` - opcode 07E1
- `taskTired(handle: int, time: int)` - opcode 05BD
- `taskToggleDuck(handle: int, state: bool)` - opcode 04EB
- `taskUseAtm(handle: int)` - opcode 05C7
- `taskUseAttractor(char_: int, attractor: int)` - opcode 074C
- `taskUseClosestMapAttractor(handle: int, radius: number, modelId: int, fromX: number, fromY: number, fromZ: number, name: string)` - opcode 08A0
- `taskUseMobilePhone(handle: int, start: bool)` - opcode 0729
- `taskWanderStandard(handle: int)` - opcode 05DE
- `taskWeaponRoll(handle: int, direction: bool)` - opcode 06E3
- `unlockAchievement(_p1: int)` - opcode 0A8E
- `unmarkAllRoadNodesAsDontWander()` - opcode 0995
- `useDetonator()` - opcode 09D9
- `writeLog(_p1: string)` - opcode 0A66
- `writeLogFloat(_p1: number, _p2: number, _p3: number, _p4: string)` - opcode 0A68
- `writeLogInt(_p1: int, _p2: int, _p3: int, _p4: string)` - opcode 0A67

### Vehicles

- `activateHeliSpeedCheat(self: int, power: int)` - opcode 07BB
- `addBlipForCar(vehicle: int) -> int` - opcode 0186
- `addBlipForCarOld(vehicle: int, color: int, display: int) -> int` - opcode 0161
- `addStuckCarCheck(vehicle: int, speed: number, duration: int)` - opcode 03CC
- `addStuckCarCheckWithWarp(vehicle: int, speed: number, duration: int, stuck: bool, flipped: bool, warp: bool, pathId: int)` - opcode 072F
- `addToCarRotationVelocity(self: int, x: number, y: number, z: number)` - opcode 07DA
- `addUpsidedownCarCheck(self: int)` - opcode 0190
- `addVehicleMod(self: int, modelId: int) -> int` - opcode 06E7
- `anchorBoat(self: int, state: bool)` - opcode 0323
- `applyBrakesToPlayersCar(self: int, state: bool)` - opcode 0221
- `applyForceToCar(self: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 07D5
- `areAnyCarCheatsActivated() -> bool` - opcode 0445
- `attachCarToCar(self: int, handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 0683
- `attachCarToObject(self: int, handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 0939
- `attachCharToCar(self: int, vehicle: int, xOffset: number, yOffset: number, zOffset: number, position: int, angleLimit: number, weaponType: int)` - opcode 0464
- `attachMissionAudioToCar(slotId: int, handle: int)` - opcode 0A16
- `attachObjectToCar(self: int, handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 0681
- `attachWinchToHeli(self: int, state: bool)` - opcode 0788
- `boatGotoCoords(self: int, x: number, y: number, z: number)` - opcode 02D3
- `boatStop(self: int)` - opcode 02D4
- `burstCarTire(self: int, tireId: int)` - opcode 04FE
- `carGotoCoordinates(self: int, x: number, y: number, z: number)` - opcode 00A7
- `carGotoCoordinatesAccurate(self: int, x: number, y: number, z: number)` - opcode 02C2
- `carGotoCoordinatesRacing(self: int, x: number, y: number, z: number)` - opcode 0704
- `carSetIdle(self: int)` - opcode 00A9
- `carWanderRandomly(self: int)` - opcode 00A8
- `changeCarColour(self: int, primaryColor: int, secondaryColor: int)` - opcode 0229
- `changeCarColourFromMenu(self: int, vehicle: int, colorSlot: int, row: int)` - opcode 0A22
- `clearAreaOfCars(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 03BA
- `clearCarLastDamageEntity(self: int)` - opcode 054F
- `clearCarLastWeaponDamage(self: int)` - opcode 0468
- `clearHeliOrientation(self: int)` - opcode 04D1
- `closeAllCarDoors(self: int)` - opcode 0508
- `controlCarDoor(self: int, door: int, latch: int, angle: number)` - opcode 095E
- `controlCarHydraulics(self: int, _p2: number, _p3: number, _p4: number, _p5: number)` - opcode 07F5
- `controlMovableVehiclePart(self: int, range: number)` - opcode 08A4
- `createCar(modelId: int, x: number, y: number, z: number) -> int` - opcode 00A5
- `createCarGenerator(x: number, y: number, z: number, heading: number, modelId: int, primaryColor: int, secondaryColor: int, forceSpawn: bool, alarmChance: int, doorLockChance: int, minDelay: int, maxDelay: int) -> int` - opcode 014B
- `createCarGeneratorWithPlate(x: number, y: number, z: number, heading: number, modelId: int, primaryColor: int, secondaryColor: int, forceSpawn: bool, alarmChance: int, doorLockChance: int, minDelay: int, maxDelay: int, plateName: string) -> int` - opcode 09E2
- `createCharInsideCar(vehicle: int, pedType: int, modelId: int) -> int` - opcode 0129
- `createEmergencyServicesCar(model: int, x: number, y: number, z: number)` - opcode 085A
- `createFxSystemOnCar(name: string, vehicle: int, xOffset: number, yOffset: number, zOffset: number, type: number) -> int` - opcode 066B
- `createFxSystemOnCarWithDirection(name: string, vehicle: int, xOffset: number, yOffset: number, zOffset: number, xDirection: number, yDirection: number, zDirection: number, type: int) -> int` - opcode 066C
- `createMissionTrain(type: int, x: number, y: number, z: number, direction: bool) -> int` - opcode 06D8
- `createRandomCarForCarPark(x: number, y: number, z: number, heading: number)` - opcode 03C5
- `createSearchlightOnVehicle(vehicle: int, xOffset: number, yOffset: number, zOffset: number, xPoint: number, yPoint: number, zPoint: number, pointRadius: number, radius: number) -> int` - opcode 06C1
- `customPlateDesignForNextCar(modelId: int, townId: int)` - opcode 0771
- `customPlateForNextCar(modelId: int, plateText: string)` - opcode 0674
- `damageCarDoor(self: int, door: int)` - opcode 073C
- `damageCarPanel(self: int, panelId: int)` - opcode 0730
- `deleteAllTrains()` - opcode 06DB
- `deleteCar(self: int)` - opcode 00A6
- `deleteMissionTrain(self: int)` - opcode 07BD
- `deleteMissionTrains()` - opcode 06D9
- `detachCar(self: int, x: number, y: number, z: number, collisionDetection: bool)` - opcode 0684
- `detachCharFromCar(self: int)` - opcode 0465
- `disableHeliAudio(self: int, state: bool)` - opcode 0A1C
- `displayCarNames(state: bool)` - opcode 09B9
- `doesCarHaveHydraulics(self: int) -> bool` - opcode 0803
- `doesCarHaveStuckCarCheck(self: int) -> bool` - opcode 06FC
- `doesVehicleExist(handle: int) -> bool` - opcode 056E
- `dontSuppressAnyCarModels()` - opcode 0734
- `dontSuppressCarModel(modelId: int)` - opcode 0733
- `explodeCar(self: int)` - opcode 020B
- `explodeCarInCutscene(self: int)` - opcode 070C
- `explodeCarInCutsceneShakeAndBits(self: int, shake: bool, effect: bool, sound: bool)` - opcode 08CB
- `fetchNextCard() -> int` - opcode 059E
- `findAllRandomVehiclesInSphere(x: number, y: number, z: number, radius: number, find_next: bool, skip_wrecked: bool)`
- `findTrainDirection(self: int) -> bool` - opcode 09E3
- `fixCar(self: int)` - opcode 0A30
- `fixCarDoor(self: int, door: int)` - opcode 068A
- `fixCarPanel(self: int, panelId: int)` - opcode 0698
- `fixCarTire(self: int, typeId: int)` - opcode 0699
- `forceAllVehicleLightsOff(state: bool)` - opcode 0A37
- `forceCarLights(self: int, lightMode: int)` - opcode 067F
- `freezeCarPosition(self: int, state: bool)` - opcode 0519
- `freezeCarPositionAndDontLoadCollision(self: int, state: bool)` - opcode 0574
- `getAllVehicles()`
- `getAvailableVehicleMod(self: int, slotId: int) -> int` - opcode 06E5
- `getCarBlockingCar(self: int) -> int` - opcode 0987
- `getCarCharIsUsing(self: int) -> int` - opcode 0811
- `getCarColours(self: int) -> int, int` - opcode 03F3
- `getCarCoordinates(self: int) -> number, number, number` - opcode 00AA
- `getCarCurrentGear(self: int)`
- `getCarDoorLockStatus(self: int) -> int` - opcode 09B3
- `getCarForwardX(self: int) -> number` - opcode 02F8
- `getCarForwardY(self: int) -> number` - opcode 02F9
- `getCarHeading(self: int) -> number` - opcode 0174
- `getCarHealth(self: int) -> int` - opcode 0227
- `getCarMass(self: int) -> number` - opcode 06A3
- `getCarModel(self: int) -> int` - opcode 0441
- `getCarModelValue(self: int) -> int` - opcode 09E1
- `getCarMovingComponentOffset(self: int) -> number` - opcode 098D
- `getCarNumberOfGears(self: int)`
- `getCarPitch(self: int) -> number` - opcode 077D
- `getCarPointer(self: int)`
- `getCarRoll(self: int) -> number` - opcode 06BE
- `getCarSpeed(self: int) -> number` - opcode 02E3
- `getCarSpeedVector(self: int) -> number, number, number` - opcode 06A2
- `getCarUprightValue(self: int) -> number` - opcode 083F
- `getCharInCarPassengerSeat(self: int, seatIndex: int) -> int` - opcode 0432
- `getClosestCarNode(x: number, y: number, z: number) -> number, number, number` - opcode 02C1
- `getClosestCarNodeWithHeading(x: number, y: number, z: number) -> number, number, number, number` - opcode 03D3
- `getCurrentCarMod(self: int, slot: int) -> int` - opcode 096D
- `getCurrentVehiclePaintjob(self: int) -> int` - opcode 0988
- `getDriverOfCar(self: int) -> int` - opcode 046C
- `getNthClosestCarNode(fromX: number, fromY: number, fromZ: number, n: int) -> number, number, number` - opcode 04D3
- `getNthClosestCarNodeWithHeading(xCoord: number, yCoord: number, zCoord: number, nth: int) -> number, number, number, number` - opcode 06F8
- `getNumCarColours(self: int) -> int` - opcode 097D
- `getOffsetFromCarInWorldCoords(self: int, xOffset: number, yOffset: number, zOffset: number) -> number, number, number` - opcode 0407
- `getPlaneUndercarriagePosition(self: int) -> number` - opcode 091F
- `getRandomCarInSphereNoSave(x: number, y: number, z: number, radius: number, model: int) -> int` - opcode 073E
- `getRandomCarModelInMemory(_p1: bool) -> int, int` - opcode 09B2
- `getRandomCarOfTypeInAngledAreaNoSave(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, char_: int) -> int` - opcode 09C0
- `getRandomCarOfTypeInArea(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, modelId: int) -> int` - opcode 0327
- `getRandomCarOfTypeInAreaNoSave(leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, modelId: int) -> int` - opcode 053E
- `getRemoteControlledCar(player: int) -> int` - opcode 0484
- `getShoppingExtraInfo(itemId: int, flag: int) -> int` - opcode 0783
- `getTrainCaboose(self: int) -> int` - opcode 06DE
- `getTrainCarriage(self: int, number: int) -> int` - opcode 078A
- `getVehicleClass(self: int) -> int` - opcode 08EC
- `getVehicleModType(modelId: int) -> int` - opcode 06E6
- `getVehiclePointerHandle(ptr: int)`
- `getVehicleQuaternion(self: int) -> number, number, number, number` - opcode 07C5
- `giveNonPlayerCarNitro(self: int)` - opcode 09E9
- `giveVehiclePaintjob(self: int, paintjobId: int)` - opcode 06ED
- `hasCarBeenDamagedByCar(self: int, other: int) -> bool` - opcode 051D
- `hasCarBeenDamagedByChar(self: int, handle: int) -> bool` - opcode 051C
- `hasCarBeenDamagedByWeapon(self: int, weaponType: int) -> bool` - opcode 031E
- `hasCarBeenResprayed(self: int) -> bool` - opcode 0A15
- `hasCarRecordingBeenLoaded(pathId: int) -> bool` - opcode 07C1
- `hasCharBeenDamagedByCar(self: int, handle: int) -> bool` - opcode 051B
- `hasTrainDerailed(self: int) -> bool` - opcode 0981
- `hasVehicleModLoaded(modelId: int) -> bool` - opcode 06EA
- `heliAttackPlayer(self: int, handle: int, radius: number)` - opcode 0724
- `heliFollowEntity(self: int, char_: int, vehicle: int, radius: number)` - opcode 0726
- `heliGotoCoords(self: int, x: number, y: number, z: number, minAltitude: number, maxAltitude: number)` - opcode 04A2
- `heliKeepEntityInView(self: int, char_: int, vehicle: int, minAltitude: number, maxAltitude: int)` - opcode 0780
- `heliLandAtCoords(self: int, x: number, y: number, z: number, minAltitude: number, maxAltitude: number)` - opcode 0743
- `improveCarByCheating(self: int, state: bool)` - opcode 0A21
- `isBigVehicle(self: int) -> bool` - opcode 0969
- `isCarDead(handle: int) -> bool` - opcode 0119
- `isCarDoorDamaged(self: int, door: int) -> bool` - opcode 09BB
- `isCarDoorFullyOpen(self: int, door: int) -> bool` - opcode 08A7
- `isCarEngineOn(self: int)`
- `isCarInAirProper(self: int) -> bool` - opcode 01F3
- `isCarInArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 00B0
- `isCarInArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 00B1
- `isCarInWater(self: int) -> bool` - opcode 02BF
- `isCarLowRider(self: int) -> bool` - opcode 096E
- `isCarModel(self: int, modelId: int) -> bool` - opcode 0137
- `isCarOnFire(self: int) -> bool` - opcode 0495
- `isCarOnScreen(self: int) -> bool` - opcode 02CA
- `isCarPassengerSeatFree(self: int, seatIndex: int) -> bool` - opcode 0431
- `isCarSirenOn(self: int)`
- `isCarStopped(self: int) -> bool` - opcode 01C1
- `isCarStoppedInArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 01AB
- `isCarStoppedInArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 01AC
- `isCarStreetRacer(self: int) -> bool` - opcode 096F
- `isCarStuck(vehicle: int) -> bool` - opcode 03CE
- `isCarStuckOnRoof(self: int) -> bool` - opcode 018F
- `isCarTireBurst(self: int, tireId: int) -> bool` - opcode 0496
- `isCarUpright(self: int) -> bool` - opcode 020D
- `isCarUpsidedown(self: int) -> bool` - opcode 01F4
- `isCarVisiblyDamaged(self: int) -> bool` - opcode 03C9
- `isCarWaitingForWorldCollision(self: int) -> bool` - opcode 04F1
- `isCharAttachedToAnyCar(self: int) -> bool` - opcode 0A32
- `isCharGettingInToACar(self: int) -> bool` - opcode 09DE
- `isCharInAngledAreaInCar2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 05F8
- `isCharInAngledAreaInCar3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 05FE
- `isCharInAnyBoat(self: int) -> bool` - opcode 04A7
- `isCharInAnyCar(self: int) -> bool` - opcode 00DF
- `isCharInAnyHeli(self: int) -> bool` - opcode 04A9
- `isCharInAnyPlane(self: int) -> bool` - opcode 04AB
- `isCharInAnyPoliceVehicle(self: int) -> bool` - opcode 056C
- `isCharInAnyTrain(self: int) -> bool` - opcode 09AE
- `isCharInAreaInCar2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 01A2
- `isCharInAreaInCar3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 01A7
- `isCharInCar(self: int, vehicle: int) -> bool` - opcode 00DB
- `isCharInFlyingVehicle(self: int) -> bool` - opcode 04C8
- `isCharSittingInAnyCar(self: int) -> bool` - opcode 0449
- `isCharSittingInCar(self: int, vehicle: int) -> bool` - opcode 0448
- `isCharStoppedInAngledAreaInCar2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 05FB
- `isCharStoppedInAngledAreaInCar3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 0601
- `isCharStoppedInAreaInCar2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 01A5
- `isCharStoppedInAreaInCar3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 01AA
- `isCharStuckUnderCar(self: int) -> bool` - opcode 095D
- `isCopVehicleInArea3dNoSave(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number) -> bool` - opcode 09C3
- `isEmergencyServicesVehicle(self: int) -> bool` - opcode 0975
- `isPlaybackGoingOnForCar(self: int) -> bool` - opcode 060E
- `isThisModelABoat(modelId: int) -> bool` - opcode 081E
- `isThisModelACar(modelId: int) -> bool` - opcode 0A01
- `isThisModelAHeli(modelId: int) -> bool` - opcode 0820
- `isThisModelAPlane(modelId: int) -> bool` - opcode 081F
- `isVehicleAttached(self: int) -> bool` - opcode 0686
- `isVehicleInSearchlight(self: int, handle: int) -> bool` - opcode 06C0
- `isVehicleOnAllWheels(self: int) -> bool` - opcode 09D0
- `locateCar2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 01AD
- `locateCar3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 01AF
- `locateCharAnyMeansCar2d(self: int, vehicle: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 0202
- `locateCharAnyMeansCar3d(self: int, vehicle: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0205
- `locateCharInCar2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00EE
- `locateCharInCar3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0100
- `locateCharInCarCar2d(self: int, handle: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 0204
- `locateCharInCarCar3d(self: int, vehicle: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0207
- `locateCharInCarChar2d(self: int, otherChar: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00F4
- `locateCharInCarChar3d(self: int, target: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0106
- `locateCharInCarObject2d(self: int, object: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 0473
- `locateCharInCarObject3d(self: int, object: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: int) -> bool` - opcode 0476
- `locateCharOnFootCar2d(self: int, vehicle: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 0203
- `locateCharOnFootCar3d(self: int, vehicle: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0206
- `locateStoppedCar2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 01AE
- `locateStoppedCar3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 01B0
- `locateStoppedCharInCar2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00F1
- `locateStoppedCharInCar3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0103
- `lockCarDoors(self: int, lockStatus: int)` - opcode 020A
- `makeHeliComeCrashingDown(self: int)` - opcode 0564
- `markCarAsConvoyCar(self: int, state: bool)` - opcode 04BD
- `markCarAsNoLongerNeeded(self: int)` - opcode 01C3
- `markMissionTrainAsNoLongerNeeded(self: int)` - opcode 07BE
- `markMissionTrainsAsNoLongerNeeded()` - opcode 06DA
- `markVehicleModAsNoLongerNeeded(modelId: int)` - opcode 06EB
- `openCarDoor(self: int, door: int)` - opcode 0657
- `openCarDoorABit(self: int, door: int, value: number)` - opcode 08A6
- `pausePlaybackRecordedCar(self: int)` - opcode 05ED
- `placeObjectRelativeToCar(self: int, vehicle: int, xOffset: number, yOffset: number, zOffset: number)` - opcode 035C
- `planeAttackPlayer(self: int, handle: int, radius: number)` - opcode 070E
- `planeAttackPlayerUsingDogFight(self: int, player: int, radius: number)` - opcode 08A2
- `planeFlyInDirection(self: int, heading: number, minAltitude: number, maxAltitude: number)` - opcode 070F
- `planeFollowEntity(self: int, char_: int, vehicle: int, radius: number)` - opcode 0710
- `planeGotoCoords(self: int, x: number, y: number, z: number, minAltitude: number, maxAltitude: number)` - opcode 04D2
- `planeStartsInAir(self: int)` - opcode 0745
- `pointSearchlightAtVehicle(self: int, handle: int, speed: number)` - opcode 06BF
- `policeHeliChaseEntity(self: int, char_: int, vehicle: int, radius: number)` - opcode 0727
- `popCarBoot(self: int)` - opcode 04E1
- `popCarDoor(self: int, door: int, visibility: bool)` - opcode 0689
- `popCarPanel(self: int, panelId: int, visibility: bool)` - opcode 0697
- `removeCarRecording(pathId: int)` - opcode 0873
- `removeCharFromCarMaintainPosition(self: int, handle: int)` - opcode 09C9
- `removeStuckCarCheck(vehicle: int)` - opcode 03CD
- `removeUpsidedownCarCheck(self: int)` - opcode 0191
- `removeVehicleMod(self: int, modelId: int)` - opcode 06E8
- `reportMissionAudioEventAtCar(handle: int, soundId: int)` - opcode 09F7
- `requestCarRecording(pathId: int)` - opcode 07C0
- `requestVehicleMod(modelId: int)` - opcode 06E9
- `resetVehicleHydraulics(self: int)` - opcode 09FE
- `restoreCarModState()` - opcode 096C
- `selectWeaponsForVehicle(self: int, _p2: int)` - opcode 0841
- `setActiveMenuItemCarMods(self: int, carcolor: int) -> bool` - opcode 0A75
- `setAircraftCarrierSamSite(state: bool)` - opcode 09E4
- `setAllCarsCanBeDamaged(state: bool)` - opcode 03F4
- `setBoatCruiseSpeed(self: int, maxSpeed: number)` - opcode 02DB
- `setCanBurstCarTires(self: int, state: bool)` - opcode 053F
- `setCanResprayCar(self: int, state: bool)` - opcode 0294
- `setCarAlwaysCreateSkids(self: int, state: bool)` - opcode 07EE
- `setCarAsMissionCar(self: int)` - opcode 0763
- `setCarAvoidLevelTransitions(self: int, state: bool)` - opcode 0428
- `setCarCanBeDamaged(self: int, state: bool)` - opcode 03F5
- `setCarCanBeVisiblyDamaged(self: int, state: bool)` - opcode 0852
- `setCarCanGoAgainstTraffic(self: int, state: bool)` - opcode 073B
- `setCarCollision(self: int, state: bool)` - opcode 099A
- `setCarCoordinates(self: int, x: number, y: number, z: number)` - opcode 00AB
- `setCarCoordinatesNoOffset(self: int, x: number, y: number, z: number)` - opcode 088C
- `setCarCruiseSpeed(self: int, maxSpeed: number)` - opcode 00AD
- `setCarDensityMultiplier(multiplier: number)` - opcode 01EB
- `setCarDrivingStyle(self: int, drivingStyle: int)` - opcode 00AE
- `setCarEngineBroken(self: int, state: bool)` - opcode 081D
- `setCarEngineOn(self: int, state: bool)` - opcode 0918
- `setCarEscortCarFront(self: int, handle: int)` - opcode 05F4
- `setCarEscortCarLeft(self: int, handle: int)` - opcode 05F1
- `setCarEscortCarRear(self: int, handle: int)` - opcode 05F3
- `setCarEscortCarRight(self: int, handle: int)` - opcode 05F2
- `setCarFollowCar(self: int, handle: int, radius: number)` - opcode 07F8
- `setCarForwardSpeed(self: int, forwardSpeed: number)` - opcode 04BA
- `setCarHeading(self: int, heading: number)` - opcode 0175
- `setCarHealth(self: int, health: int)` - opcode 0224
- `setCarHeavy(self: int, state: bool)` - opcode 01EC
- `setCarHydraulics(self: int, state: bool)` - opcode 07FF
- `setCarLightsOn(self: int, state: bool)` - opcode 0919
- `setCarMission(self: int, carMission: int)` - opcode 00AF
- `setCarModelComponents(_unused: int, component1: int, component2: int)` - opcode 0506
- `setCarOnlyDamagedByPlayer(self: int, state: bool)` - opcode 02AA
- `setCarProofs(self: int, bulletProof: bool, fireProof: bool, explosionProof: bool, collisionProof: bool, meleeProof: bool)` - opcode 02AC
- `setCarRandomRouteSeed(self: int, routeSeed: int)` - opcode 048B
- `setCarRoll(self: int, yAngle: number)` - opcode 0731
- `setCarRotationVelocity(self: int, x: number, y: number, z: number)` - opcode 07DB
- `setCarStatus(self: int, status: int)` - opcode 03A2
- `setCarStayInFastLane(self: int, state: bool)` - opcode 0466
- `setCarStayInSlowLane(self: int, state: bool)` - opcode 0714
- `setCarStraightLineDistance(self: int, distance: int)` - opcode 04E0
- `setCarStrong(self: int, state: bool)` - opcode 03AB
- `setCarTempAction(self: int, actionId: int, timeInMs: int)` - opcode 0477
- `setCarTraction(self: int, traction: number)` - opcode 0423
- `setCarVisible(self: int, state: bool)` - opcode 0338
- `setCarWatertight(self: int, state: bool)` - opcode 039C
- `setCharCanBeShotInVehicle(self: int, state: bool)` - opcode 054A
- `setCharForceDieInCar(self: int, state: bool)` - opcode 0982
- `setCharGetOutUpsideDownCar(self: int, state: bool)` - opcode 09F6
- `setCharStayInCarWhenJacked(self: int, state: bool)` - opcode 0526
- `setForceRandomCarModel(modelId: int)` - opcode 09BF
- `setFreebiesInVehicle(self: int, state: bool)` - opcode 08F3
- `setFreeHealthCare(self: int, state: bool)` - opcode 0414
- `setGangWarsTrainingMission(state: bool)` - opcode 08AC
- `setHasBeenOwnedForCarGenerator(self: int, state: bool)` - opcode 0A17
- `setHeliBladesFullSpeed(self: int)` - opcode 0825
- `setHeliOrientation(self: int, angle: number)` - opcode 04D0
- `setHeliReachedTargetDistance(self: int, distance: int)` - opcode 0853
- `setHeliStabiliser(self: int, state: bool)` - opcode 04DF
- `setLoadCollisionForCarFlag(self: int, state: bool)` - opcode 0587
- `setMissionTrainCoordinates(self: int, x: number, y: number, z: number)` - opcode 07C7
- `setPlaneThrottle(self: int, throttle: number)` - opcode 0742
- `setPlaneUndercarriageUp(self: int, state: bool)` - opcode 08E6
- `setPlay3dAudioStreamAtCar(handle: userdata, car: int)`
- `setPlayerEnterCarButton(playerId: int, state: bool)` - opcode 07CC
- `setPlayersCanBeInSeparateCars(_p1: int)` - opcode 06FA
- `setTargetCarForMissionGarage(garageName: int, vehicle: int)` - opcode 021B
- `setTrainCruiseSpeed(self: int, speed: number)` - opcode 06DD
- `setTrainForcedToSlowDown(self: int, state: bool)` - opcode 09CF
- `setTrainSpeed(self: int, speed: number)` - opcode 06DC
- `setUpsidedownCarNotDamaged(self: int, state: bool)` - opcode 03ED
- `setUpSkipForSpecificVehicle(x: number, y: number, z: number, heading: number, handle: int)` - opcode 09E0
- `setUpSkipForVehicleFinishedByScript(x: number, y: number, z: number, heading: number, vehicle: int)` - opcode 0A35
- `setVehicleAirResistanceMultiplier(self: int, multiplier: number)` - opcode 088B
- `setVehicleCanBeTargetted(self: int, state: bool)` - opcode 084E
- `setVehicleDirtLevel(self: int, level: number)` - opcode 0878
- `setVehicleInterior(self: int, interiorId: int)` - opcode 0840
- `setVehicleIsConsideredByPlayer(self: int, state: bool)` - opcode 09B0
- `setVehicleQuaternion(self: int, x: number, y: number, z: number, w: number)` - opcode 07C6
- `setVehicleToFadeIn(self: int, alpha: int)` - opcode 0594
- `setZoneForGangWarsTraining(zone: int)` - opcode 08B3
- `shuffleCardDecks(type: int)` - opcode 059D
- `skipInPlaybackRecordedCar(self: int, amount: number)` - opcode 0706
- `skipToEndAndStopPlaybackRecordedCar(self: int)` - opcode 06C5
- `sortOutObjectCollisionWithCar(self: int, handle: int)` - opcode 050E
- `startCarFire(vehicle: int) -> int` - opcode 0325
- `startPlaybackRecordedCar(self: int, path: int)` - opcode 05EB
- `startPlaybackRecordedCarLooped(self: int, pathId: int)` - opcode 085E
- `startPlaybackRecordedCarUsingAi(self: int, pathId: int)` - opcode 0705
- `stopPlaybackRecordedCar(self: int)` - opcode 05EC
- `storeCarCharIsAttachedToNoSave(self: int) -> int` - opcode 0A33
- `storeCarCharIsIn(self: int) -> int` - opcode 00D9
- `storeCarCharIsInNoSave(self: int) -> int` - opcode 03C0
- `storeCarModState()` - opcode 096B
- `suppressCarModel(model: int)` - opcode 0732
- `switchAmbientPlanes(state: bool)` - opcode 0923
- `switchCarEngine(self: int, state: bool)`
- `switchCarGenerator(self: int, amount: int)` - opcode 014C
- `switchCarSiren(self: int, state: bool)` - opcode 0397
- `switchPoliceHelis(state: bool)` - opcode 096A
- `switchRandomTrains(state: bool)` - opcode 06D7
- `takeRemoteControlOfCar(player: int, vehicle: int)` - opcode 0715
- `taskCarDriveToCoord(driver: int, vehicle: int, x: number, y: number, z: number, speed: number, _p7: int, _p8: int, drivingStyle: int)` - opcode 05D1
- `taskCarDriveWander(char_: int, vehicle: int, speed: number, drivingStyle: int)` - opcode 05D2
- `taskCarMission(char_: int, vehicle: int, targetVehicle: int, missionId: int, cruiseSpeed: number, drivingStyle: int)` - opcode 06E1
- `taskCarTempAction(char_: int, vehicle: int, actionId: int, time: int)` - opcode 06C7
- `taskDestroyCar(char_: int, vehicle: int)` - opcode 0672
- `taskEnterCarAsDriver(char_: int, vehicle: int, time: int)` - opcode 05CB
- `taskEnterCarAsPassenger(char_: int, vehicle: int, time: int, seatId: int)` - opcode 05CA
- `taskEveryoneLeaveCar(self: int)` - opcode 068B
- `taskGotoCar(char_: int, vehicle: int, time: int, radius: number)` - opcode 0772
- `taskLeaveAnyCar(handle: int)` - opcode 0633
- `taskLeaveCar(char_: int, vehicle: int)` - opcode 05CD
- `taskLeaveCarAndFlee(char_: int, vehicle: int, x: number, y: number, z: number)` - opcode 05CF
- `taskLeaveCarImmediately(char_: int, vehicle: int)` - opcode 0622
- `taskLookAtVehicle(char_: int, vehicle: int, time: int)` - opcode 05C0
- `taskShuffleToNextCarSeat(char_: int, vehicle: int)` - opcode 0676
- `taskWarpCharIntoCarAsDriver(char_: int, vehicle: int)` - opcode 072A
- `taskWarpCharIntoCarAsPassenger(char_: int, vehicle: int, seatId: int)` - opcode 072B
- `turnCarToFaceCoord(self: int, x: number, y: number)` - opcode 039F
- `unpausePlaybackRecordedCar(self: int)` - opcode 05EE
- `vehicleCanBeTargettedByHsMissile(self: int, state: bool)` - opcode 08F2
- `vehicleDoesProvideCover(self: int, state: bool)` - opcode 0957
- `warpCharFromCarToCoord(self: int, x: number, y: number, z: number)` - opcode 0362
- `warpCharIntoCar(self: int, vehicle: int)` - opcode 036A
- `warpCharIntoCarAsPassenger(self: int, handle: int, seatId: int)` - opcode 0430
- `winchCanPickVehicleUp(self: int, state: bool)` - opcode 08A5

### Peds

- `activateInteriorPeds(state: bool)` - opcode 084D
- `addAmmoToChar(self: int, weaponType: int, ammo: int)` - opcode 0114
- `addArmourToChar(self: int, amount: int)` - opcode 035F
- `addBlipForChar(char_: int) -> int` - opcode 0187
- `addBlipForDeadChar(char_: int) -> int` - opcode 0888
- `addCharDecisionMakerEventResponse(self: int, eventId: int, taskId: int, respect: number, hate: number, like: number, dislike: number, inCar: bool, onFoot: bool)` - opcode 0709
- `addPedtypeAsAttractorUser(self: int, pedType: int)` - opcode 0680
- `allocateStreamedScriptToRandomPed(id: int, modelId: int, priority: int)` - opcode 0928
- `areAnyCharsNearChar(self: int, radius: number) -> bool` - opcode 06FF
- `attachCharToBike(self: int, vehicle: int, xOffset: number, yOffset: number, zOffset: number, position: int, _p7: number, _p8: number, weaponType: int)` - opcode 06A7
- `attachCharToObject(self: int, handle: int, xOffset: number, yOffset: number, zOffset: number, orientation: int, angleLimit: number, weaponType: int)` - opcode 04F4
- `attachFxSystemToCharBone(self: int, handle: int, boneId: int)` - opcode 0883
- `attachMissionAudioToChar(slotId: int, handle: int)` - opcode 0949
- `attachObjectToChar(self: int, handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 069B
- `canCharSeeDeadChar(self: int, pedType: int) -> bool` - opcode 0480
- `clearAllCharRelationships(self: int, relationshipType: int)` - opcode 077C
- `clearAreaOfChars(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 042B
- `clearCharDecisionMakerEventResponse(self: int, eventId: int)` - opcode 0708
- `clearCharLastDamageEntity(self: int)` - opcode 054E
- `clearCharLastWeaponDamage(self: int)` - opcode 0467
- `clearCharRelationship(self: int, relationshipType: int, toPedType: int)` - opcode 077B
- `clearCharTasks(self: int)` - opcode 0687
- `clearCharTasksImmediately(self: int)` - opcode 0792
- `clearConversationForChar(handle: int)` - opcode 08ED
- `copyCharDecisionMaker(maskOrOtherHandle: int) -> int` - opcode 07E5
- `copySharedCharDecisionMaker(mask: int) -> int` - opcode 0978
- `createChar(pedType: int, modelId: int, x: number, y: number, z: number) -> int` - opcode 009A
- `createCharAsPassenger(vehicle: int, pedType: int, modelId: int, seatId: int) -> int` - opcode 01C8
- `createCharAtAttractor(pedType: int, modelId: int, taskId: int, attractor: int) -> int` - opcode 0621
- `createFxSystemOnChar(name: string, char_: int, xOffset: number, yOffset: number, zOffset: number, type: int) -> int` - opcode 0669
- `createFxSystemOnCharWithDirection(name: string, char_: int, xOffset: number, yOffset: number, zOffset: number, xDirection: number, yDirection: number, zDirection: number, type: int) -> int` - opcode 066A
- `createRandomChar(x: number, y: number, z: number) -> int` - opcode 0376
- `createRandomCharAsDriver(vehicle: int) -> int` - opcode 0560
- `createRandomCharAsPassenger(vehicle: int, seatId: int) -> int` - opcode 0561
- `damageChar(self: int, amount: int, damageArmour: bool)` - opcode 0851
- `deleteChar(self: int)` - opcode 009B
- `disableCharSpeech(self: int, stopNow: bool)` - opcode 094E
- `doesCharExist(handle: int) -> bool` - opcode 056D
- `dontRemoveChar(self: int)` - opcode 01C5
- `enableCharSpeech(self: int)` - opcode 094F
- `explodeCharHead(self: int)` - opcode 0321
- `findAllRandomCharsInSphere(x: number, y: number, z: number, radius: number, find_next: bool, skip_dead: bool)`
- `freezeCharPosition(self: int, state: bool)` - opcode 04D7
- `freezeCharPositionAndDontLoadCollision(self: int, state: bool)` - opcode 0575
- `getAllChars()`
- `getAmmoInCharWeapon(self: int, weaponType: int) -> int` - opcode 041A
- `getAudioStreamLooped(handle: userdata)`
- `getCharActiveInterior(self: int) -> int` - opcode 09E8
- `getCharAnimCurrentTime(self: int, animationName: string) -> int` - opcode 0613
- `getCharAnimTotalTime(self: int, animationName: string) -> int` - opcode 061A
- `getCharArmour(self: int) -> int` - opcode 04DD
- `getCharCoordinates(self: int) -> number, number, number` - opcode 00A0
- `getCharHeading(self: int) -> number` - opcode 0172
- `getCharHealth(self: int) -> int` - opcode 0226
- `getCharHeightAboveGround(self: int) -> number` - opcode 0819
- `getCharHighestPriorityEvent(self: int) -> int` - opcode 080E
- `getCharModel(self: int) -> int` - opcode 0665
- `getCharPlayerIsTargeting(self: int)`
- `getCharPointer(self: int)`
- `getCharPointerHandle(ptr: int)`
- `getCharQuaternion(self: int)`
- `getCharSpeed(self: int) -> number` - opcode 06AC
- `getCharSwimState(self: int) -> int` - opcode 0966
- `getCharVelocity(self: int) -> number, number, number` - opcode 083D
- `getCharWeaponInSlot(self: int, weaponSlotId: int) -> int, int, int` - opcode 04B8
- `getClosestCharNode(x: number, y: number, z: number) -> number, number, number` - opcode 02C0
- `getCurrentCharWeapon(self: int) -> int` - opcode 0470
- `getDeadCharCoordinates(self: int) -> number, number, number` - opcode 0889
- `getDeadCharPickupCoords(char_: int) -> number, number, number` - opcode 04A5
- `getNameOfEntryExitCharUsed(self: int) -> string` - opcode 094B
- `getOffsetFromCharInWorldCoords(self: int, xOffset: number, yOffset: number, zOffset: number) -> number, number, number` - opcode 04C4
- `getPedType(self: int) -> int` - opcode 089F
- `getPlayerChar(self: int) -> int` - opcode 01F5
- `getPositionOfEntryExitCharUsed(self: int) -> number, number, number, number` - opcode 094C
- `getRandomCharInAreaOffsetNoSave(x: number, y: number, z: number, radiusX: number, radiusY: number, radiusZ: number) -> int` - opcode 0A3E
- `getRandomCharInSphere(x: number, y: number, z: number, radius: number, civilian: bool, gang: bool, criminal: bool) -> int` - opcode 073F
- `getRandomCharInSphereNoBrain(x: number, y: number, z: number, radius: number) -> int` - opcode 08E5
- `getRandomCharInSphereOnlyDrugsBuyers(x: number, y: number, z: number, radius: number) -> int` - opcode 089E
- `getRandomCharInZone(zone: int, civilian: bool, gang: bool, criminalOrProstitute: bool) -> int` - opcode 02DD
- `getTotalNumberOfPedsKilledByPlayer(self: int) -> int` - opcode 0806
- `giveMeleeAttackToChar(self: int, fightStyle: int, moveId: int)` - opcode 07FE
- `giveWeaponToChar(self: int, weaponType: int, ammo: int)` - opcode 01B2
- `hasCharBeenArrested(self: int) -> bool` - opcode 0741
- `hasCharBeenDamagedByChar(self: int, handle: int) -> bool` - opcode 051A
- `hasCharBeenDamagedByWeapon(self: int, weaponType: int) -> bool` - opcode 031D
- `hasCharBeenPhotographed(self: int) -> bool` - opcode 04C5
- `hasCharGotWeapon(self: int, weaponType: int) -> bool` - opcode 0491
- `hasCharSpottedChar(self: int, target: int) -> bool` - opcode 0364
- `hasCharSpottedCharInFront(self: int, handle: int) -> bool` - opcode 09ED
- `hasSpecialCharacterLoaded(slotId: int) -> bool` - opcode 023D
- `isCharAtScriptedAttractor(self: int, handle: int) -> bool` - opcode 0642
- `isCharDead(handle: int) -> bool` - opcode 0118
- `isCharDucking(self: int) -> bool` - opcode 0597
- `isCharHeadMissing(self: int) -> bool` - opcode 09A8
- `isCharHoldingObject(self: int, handle: int) -> bool` - opcode 0737
- `isCharInAir(self: int) -> bool` - opcode 0818
- `isCharInAngledArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 05F6
- `isCharInAngledArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 05FC
- `isCharInAngledAreaOnFoot2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 05F7
- `isCharInAngledAreaOnFoot3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 05FD
- `isCharInAnySearchlight(self: int) -> bool, int?` - opcode 07A9
- `isCharInArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 00A3
- `isCharInArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 00A4
- `isCharInAreaOnFoot2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 01A1
- `isCharInAreaOnFoot3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 01A6
- `isCharInModel(self: int, modelId: int) -> bool` - opcode 00DD
- `isCharInSearchlight(self: int, handle: int) -> bool` - opcode 06B7
- `isCharInTaxi(self: int) -> bool` - opcode 0602
- `isCharInWater(self: int) -> bool` - opcode 04AD
- `isCharInZone(self: int, zone: int) -> bool` - opcode 0154
- `isCharMale(self: int) -> bool` - opcode 03A3
- `isCharModel(self: int, modelId: int) -> bool` - opcode 02F2
- `isCharOnAnyBike(self: int) -> bool` - opcode 047A
- `isCharOnFoot(self: int) -> bool` - opcode 044B
- `isCharOnScreen(self: int) -> bool` - opcode 02CB
- `isCharPlayingAnim(self: int, animationName: string) -> bool` - opcode 0611
- `isCharRespondingToEvent(self: int, eventId: int) -> bool` - opcode 074F
- `isCharShooting(self: int) -> bool` - opcode 02E0
- `isCharShootingInArea(self: int, leftBottomX: number, leftBottomY: number, topRightX: number, topRightY: number, drawSphere: bool) -> bool` - opcode 02D6
- `isCharStopped(self: int) -> bool` - opcode 02A0
- `isCharStoppedInAngledArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 05F9
- `isCharStoppedInAngledArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 05FF
- `isCharStoppedInAngledAreaOnFoot2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 05FA
- `isCharStoppedInAngledAreaOnFoot3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 0600
- `isCharStoppedInArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 01A3
- `isCharStoppedInArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 01A8
- `isCharStoppedInAreaOnFoot2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 01A4
- `isCharStoppedInAreaOnFoot3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 01A9
- `isCharSwimming(self: int) -> bool` - opcode 0965
- `isCharTalking(self: int) -> bool` - opcode 094D
- `isCharUsingMapAttractor(self: int) -> bool` - opcode 09C5
- `isCharWaitingForWorldCollision(self: int) -> bool` - opcode 04F0
- `isCurrentCharWeapon(self: int, weaponType: int) -> bool` - opcode 02D8
- `isPlayerTargettingChar(self: int, handle: int) -> bool` - opcode 0457
- `loadCharDecisionMaker(type: int) -> int` - opcode 060A
- `loadSpecialCharacter(slotId: int, modelName: string)` - opcode 023C
- `locateCharAnyMeans2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: int) -> bool` - opcode 00EC
- `locateCharAnyMeans3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 00FE
- `locateCharAnyMeansChar2d(self: int, target: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00F2
- `locateCharAnyMeansChar3d(self: int, target: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0104
- `locateCharAnyMeansObject2d(self: int, object: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 0471
- `locateCharAnyMeansObject3d(self: int, object: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0474
- `locateCharOnFoot2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00ED
- `locateCharOnFoot3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 00FF
- `locateCharOnFootChar2d(self: int, target: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00F3
- `locateCharOnFootChar3d(self: int, target: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0105
- `locateCharOnFootObject2d(self: int, object: int, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 0472
- `locateCharOnFootObject3d(self: int, object: int, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0475
- `locateStoppedCharAnyMeans2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00EF
- `locateStoppedCharAnyMeans3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0101
- `locateStoppedCharOnFoot2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 00F0
- `locateStoppedCharOnFoot3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 0102
- `makeRoomInPlayerGangForMissionPeds(_p1: int)` - opcode 09DD
- `markCharAsNoLongerNeeded(self: int)` - opcode 01C2
- `PLAYER_PED()`
- `playerPed()`
- `pointSearchlightAtChar(self: int, handle: int, speed: number)` - opcode 06B6
- `removeAllCharWeapons(self: int)` - opcode 048F
- `removeCharElegantly(self: int)` - opcode 034F
- `removeCharFromGroup(self: int)` - opcode 06C9
- `removeWeaponFromChar(self: int, weaponType: int)` - opcode 0555
- `reportMissionAudioEventAtChar(handle: int, soundId: int)` - opcode 09F1
- `setAnimGroupForChar(self: int, animGroup: string)` - opcode 0245
- `setAudioStreamLooped(handle: userdata, looped: bool)`
- `setCharAccuracy(self: int, accuracy: int)` - opcode 02E2
- `setCharAllowedToDuck(self: int, state: bool)` - opcode 0856
- `setCharAmmo(self: int, weaponType: int, ammo: int)` - opcode 017B
- `setCharAnimCurrentTime(self: int, animationName: string, time: number)` - opcode 0614
- `setCharAnimPlayingFlag(self: int, animationName: string, flag: bool)` - opcode 0612
- `setCharAnimSpeed(self: int, animName: string, animSpeed: number)` - opcode 0393
- `setCharBleeding(self: int, state: bool)` - opcode 0332
- `setCharBulletproofVest(self: int, state: bool)` - opcode 093B
- `setCharCanBeKnockedOffBike(self: int, stayOnBike: bool)` - opcode 08C6
- `setCharCantBeDraggedOut(self: int, state: bool)` - opcode 039E
- `setCharCollision(self: int, state: bool)` - opcode 0619
- `setCharCoordinates(self: int, x: number, y: number, z: number)` - opcode 00A1
- `setCharCoordinatesDontWarpGang(self: int, x: number, y: number, z: number)` - opcode 08C7
- `setCharCoordinatesDontWarpGangNoOffset(self: int, x: number, y: number, z: number)` - opcode 09BC
- `setCharCoordinatesNoOffset(self: int, x: number, y: number, z: number)` - opcode 0972
- `setCharDecisionMaker(self: int, maskOrHandle: int)` - opcode 060B
- `setCharDropsWeaponsWhenDead(self: int, state: bool)` - opcode 087E
- `setCharDrownsInWater(self: int, state: bool)` - opcode 04D8
- `setCharDruggedUp(self: int, state: bool)` - opcode 09A7
- `setCharHasUsedEntryExit(self: int, x: number, y: number, radius: number)` - opcode 08AD
- `setCharHeading(self: int, heading: number)` - opcode 0173
- `setCharHealth(self: int, health: int)` - opcode 0223
- `setCharInterior(self: int, interiorId: int)` - opcode 0860
- `setCharIsChrisCriminal(self: int, state: bool)` - opcode 0433
- `setCharIsTargetPriority(self: int, state: bool)` - opcode 0770
- `setCharKeepTask(self: int, state: bool)` - opcode 0961
- `setCharKindaStayInSamePlace(self: int, state: bool)` - opcode 0816
- `setCharMaxHealth(self: int, maxHealth: int)` - opcode 08AF
- `setCharMoney(self: int, amount: int)` - opcode 03FE
- `setCharNeverLeavesGroup(self: int, state: bool)` - opcode 087F
- `setCharNeverTargetted(self: int, state: bool)` - opcode 0568
- `setCharOnlyDamagedByPlayer(self: int, state: bool)` - opcode 02A9
- `setCharProofs(self: int, bulletProof: bool, fireProof: bool, explosionProof: bool, collisionProof: bool, meleeProof: bool)` - opcode 02AB
- `setCharQuaternion(self: int, x: number, y: number, z: number, w: number)`
- `setCharRelationship(self: int, relationshipType: int, pedType: int)` - opcode 077A
- `setCharRotation(self: int, x: number, y: number, z: number)` - opcode 083E
- `setCharSayScript(self: int, _p2: int, _p3: bool, _p4: bool, _p5: bool)` - opcode 09D6
- `setCharShootRate(self: int, rate: int)` - opcode 07DD
- `setCharSignalAfterKill(self: int, state: bool)` - opcode 09B5
- `setCharStayInSamePlace(self: int, state: bool)` - opcode 0350
- `setCharSuffersCriticalHits(self: int, state: bool)` - opcode 0446
- `setCharSwimSpeed(self: int, speed: number)` - opcode 0A28
- `setCharUsesCollisionClosestObjectOfType(x: number, y: number, z: number, radius: number, modelId: int, state: bool, target: int)` - opcode 0985
- `setCharUsesUpperbodyDamageAnimsOnly(self: int, state: bool)` - opcode 0946
- `setCharVelocity(self: int, x: number, y: number, z: number)` - opcode 083C
- `setCharVisible(self: int, state: bool)` - opcode 0337
- `setCharWantedByPolice(self: int, state: bool)` - opcode 09B6
- `setCharWeaponSkill(self: int, skillId: int)` - opcode 081A
- `setCurrentCharWeapon(self: int, weaponType: int)` - opcode 01B9
- `setEquippedItem(widgetId: int, _p2: int)` - opcode 0A6C
- `setHeadingLimitForAttachedChar(self: int, orientation: int, headingLimit: number)` - opcode 0887
- `setLoadCollisionForCharFlag(self: int, state: bool)` - opcode 0588
- `setPedDensityMultiplier(multiplier: number)` - opcode 03DE
- `setPlay3dAudioStreamAtChar(handle: userdata, ped: int)`
- `shutAllCharsUp(state: bool)` - opcode 09F5
- `shutCharUp(self: int, state: bool)` - opcode 0489
- `shutCharUpForScriptedSpeech(self: int, state: bool)` - opcode 0A09
- `startCharFacialTalk(self: int, duration: int)` - opcode 0967
- `startCharFire(char_: int) -> int` - opcode 0326
- `stopCharFacialTalk(self: int)` - opcode 0968
- `switchArrestPenalties(state: bool)` - opcode 08DE
- `switchPedRoadsBackToOriginal(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 091E
- `switchPedRoadsOff(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 022B
- `switchPedRoadsOn(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number)` - opcode 022A
- `taskAimGunAtChar(char_: int, target: int, time: int)` - opcode 0635
- `taskCharArrestChar(char_: int, target: int)` - opcode 06E4
- `taskCharSlideToCoord(handle: int, x: number, y: number, z: number, angle: number, radius: number)` - opcode 07CD
- `taskCharSlideToCoordAndPlayAnim(handle: int, x: number, y: number, z: number, angle: number, radius: number, animationName: string, animationFile: string, frameDelta: number, loop: bool, lockX: bool, lockY: bool, lockF: bool, time: int)` - opcode 0804
- `taskChatWithChar(char_: int, other: int, leadSpeaker: bool, _p4: int)` - opcode 0677
- `taskFleeChar(handle: int, threat: int, radius: number, time: int)` - opcode 05DB
- `taskFleeCharAnyMeans(handle: int, threat: int, runDistance: number, time: int, changeCourse: bool, _p6: int, _p7: int, radius: number)` - opcode 0751
- `taskGotoChar(walking: int, target: int, time: int, radius: number)` - opcode 05D9
- `taskGotoCharAiming(handle: int, target: int, radiusFrom: number, radiusTo: number)` - opcode 07A3
- `taskGotoCharOffset(char_: int, target: int, time: int, radius: number, heading: number)` - opcode 06A8
- `taskKillCharOnFoot(killer: int, target: int)` - opcode 05E2
- `taskKillCharOnFootTimed(handle: int, target: int, time: int)` - opcode 07A5
- `taskKillCharOnFootWhileDucking(char_: int, target: int, flags: int, actionDelay: int, actionChance: int)` - opcode 0634
- `taskLookAtChar(observer: int, target: int, time: int)` - opcode 05BF
- `taskSetCharDecisionMaker(char_: int, decisionMakerChar: int)` - opcode 07BC
- `taskShootAtChar(handle: int, target: int, time: int)` - opcode 074D
- `taskSmartFleeChar(handle: int, threat: int, radius: number, time: int)` - opcode 05DD
- `taskTogglePedThreatScanner(handle: int, _p2: bool, _p3: bool, _p4: bool)` - opcode 0688
- `taskTurnCharToFaceChar(char_: int, target: int)` - opcode 0639
- `taskTurnCharToFaceCoord(handle: int, x: number, y: number, z: number)` - opcode 06BA
- `taskWalkAlongsideChar(handle: int, target: int)` - opcode 0859
- `unloadSpecialCharacter(slotId: int)` - opcode 0296
- `wasCutsceneSkipped() -> bool` - opcode 056A

### Objects

- `addBlipForObject(object: int) -> int` - opcode 0188
- `addBlipForPickup(pickup: int) -> int` - opcode 03DC
- `addToObjectRotationVelocity(self: int, x: number, y: number, z: number)` - opcode 05A1
- `addToObjectVelocity(self: int, x: number, y: number, z: number)` - opcode 038C
- `addVelocityRelativeToObjectVelocity(self: int, x: number, y: number, z: number)` - opcode 05A7
- `allocateStreamedScriptToObject(id: int, modelId: int, priority: int, radius: number, type: int)` - opcode 0929
- `attachMissionAudioToObject(slotId: int, handle: int)` - opcode 097C
- `attachObjectToObject(self: int, handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 069A
- `attachSearchlightToSearchlightObject(self: int, spotTower: int, spotHousing: int, spotBulb: int, xOffset: number, yOffset: number, zOffset: number)` - opcode 06CA
- `breakObject(self: int, intensity: int)` - opcode 0723
- `clearObjectLastWeaponDamage(self: int)` - opcode 0900
- `createForsalePropertyPickup(x: number, y: number, z: number, price: int, message: string) -> int` - opcode 0518
- `createFxSystemOnObject(name: string, object: int, xOffset: number, yOffset: number, zOffset: number, type: int) -> int` - opcode 066D
- `createFxSystemOnObjectWithDirection(name: string, object: int, xOffset: number, yOffset: number, zOffset: number, xDirection: number, yDirection: number, zDirection: number, type: int) -> int` - opcode 066E
- `createHorseshoePickup(x: number, y: number, z: number) -> int` - opcode 0959
- `createLockedPropertyPickup(x: number, y: number, z: number, message: string) -> int` - opcode 0517
- `createMoneyPickup(x: number, y: number, z: number, cashAmount: int, permanent: bool) -> int` - opcode 02E1
- `createObject(modelId: int, x: number, y: number, z: number) -> int` - opcode 0107
- `createObjectNoOffset(modelId: int, x: number, y: number, z: number) -> int` - opcode 029B
- `createOysterPickup(x: number, y: number, z: number) -> int` - opcode 095A
- `createPickup(modelId: int, pickupType: int, x: number, y: number, z: number) -> int` - opcode 0213
- `createPickupWithAmmo(modelId: int, pickupType: int, ammo: int, x: number, y: number, z: number) -> int` - opcode 032B
- `createProtectionPickup(x: number, y: number, z: number, revenueLimit: int, revenueRate: int) -> int` - opcode 04A6
- `createSnapshotPickup(x: number, y: number, z: number) -> int` - opcode 0958
- `deleteObject(self: int)` - opcode 0108
- `detachObject(self: int, x: number, y: number, z: number, collisionDetection: bool)` - opcode 0682
- `doesObjectExist(handle: int) -> bool` - opcode 03CA
- `doesObjectHaveThisModel(self: int, modelId: int) -> bool` - opcode 09CC
- `doesPickupExist(handle: int) -> bool` - opcode 09D1
- `dontRemoveObject(self: int)` - opcode 01C7
- `dropObject(self: int, state: bool)` - opcode 070B
- `dropSecondObject(self: int, state: bool)` - opcode 09A1
- `enableDisabledAttractorsOnObject(self: int, state: bool)` - opcode 0A0A
- `findAllRandomObjectsInSphere(x: number, y: number, z: number, radius: number, find_next: bool)`
- `flashHudObject(object: int)` - opcode 03E7
- `freezeObjectPosition(self: int, state: bool)` - opcode 0550
- `getAllObjects()`
- `getClosestStealableObject(x: number, y: number, z: number, radius: number) -> int` - opcode 0866
- `getLevelDesignCoordsForObject(self: int, nth: int) -> number, number, number` - opcode 080A
- `getObjectAnimCurrentTime(self: int, animationName: string) -> number` - opcode 0839
- `getObjectCoordinates(self: int) -> bool, number?, number?, number?` - opcode 01BB
- `getObjectHeading(self: int) -> number` - opcode 0176
- `getObjectHealth(self: int) -> int` - opcode 071E
- `getObjectMass(self: int) -> number` - opcode 0907
- `getObjectModel(self: int) -> int` - opcode 0984
- `getObjectPointer(self: int)`
- `getObjectPointerHandle(ptr: int)`
- `getObjectQuaternion(self: int) -> number, number, number, number` - opcode 07C3
- `getObjectRotationVelocity(self: int) -> number, number, number` - opcode 05A6
- `getObjectSpeed(self: int) -> number` - opcode 05A8
- `getObjectTurnMass(self: int) -> number` - opcode 0909
- `getObjectVelocity(self: int) -> number, number, number` - opcode 059F
- `getOffsetFromObjectInWorldCoords(self: int, xOffset: number, yOffset: number, zOffset: number) -> number, number, number` - opcode 0400
- `getPickupCoordinates(self: int) -> number, number, number` - opcode 065B
- `getRopeHeightForObject(self: int) -> number` - opcode 0796
- `grabEntityOnRopeForObject(self: int) -> int, int, int` - opcode 0798
- `hasObjectBeenDamaged(self: int) -> bool` - opcode 0366
- `hasObjectBeenDamagedByWeapon(self: int, weaponType: int) -> bool` - opcode 08FF
- `hasObjectBeenPhotographed(self: int) -> bool` - opcode 0833
- `hasObjectBeenUprooted(self: int) -> bool` - opcode 095B
- `hasObjectCollidedWithAnything(self: int) -> bool` - opcode 04DA
- `hasObjectOfTypeBeenSmashed(x: number, y: number, z: number, radius: number, modelId: int) -> bool` - opcode 07F0
- `hasPickupBeenCollected(self: int) -> bool` - opcode 0214
- `isAnyPickupAtCoords(x: number, y: number, z: number) -> bool` - opcode 048C
- `isClosestObjectOfTypeSmashedOrDamaged(x: number, y: number, z: number, radius: number, modelId: int, smashed: bool, damaged: bool) -> bool` - opcode 0716
- `isMoneyPickupAtCoords(x: number, y: number, z: number) -> bool` - opcode 09DA
- `isObjectAttached(self: int) -> bool` - opcode 0685
- `isObjectInAngledArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, angle: number, drawSphere: bool) -> bool` - opcode 08E3
- `isObjectInAngledArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, angle: number, drawSphere: bool) -> bool` - opcode 08E4
- `isObjectInArea2d(self: int, leftBottomX: number, leftBottomY: number, rightTopX: number, rightTopY: number, drawSphere: bool) -> bool` - opcode 04E9
- `isObjectInArea3d(self: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, drawSphere: bool) -> bool` - opcode 04EA
- `isObjectIntersectingWorld(self: int) -> bool` - opcode 09FC
- `isObjectInWater(self: int) -> bool` - opcode 04E7
- `isObjectOnScreen(self: int) -> bool` - opcode 02CC
- `isObjectPlayingAnim(self: int, animationName: string) -> bool` - opcode 0837
- `isObjectStatic(self: int) -> bool` - opcode 05A3
- `isObjectWithinBrainActivationRange(self: int) -> bool` - opcode 0977
- `linkObjectToInterior(self: int, areaId: int)` - opcode 0566
- `locateObject2d(self: int, x: number, y: number, xRadius: number, yRadius: number, drawSphere: bool) -> bool` - opcode 04E5
- `locateObject3d(self: int, x: number, y: number, z: number, xRadius: number, yRadius: number, zRadius: number, drawSphere: bool) -> bool` - opcode 04E6
- `makeObjectTargettable(self: int, state: bool)` - opcode 035D
- `markObjectAsNoLongerNeeded(self: int)` - opcode 01C4
- `playObjectAnim(self: int, animationName: string, animationFile: string, framedelta: number, lockF: bool, loop: bool)` - opcode 075A
- `releaseEntityFromRopeForObject(self: int)` - opcode 0799
- `removeObjectElegantly(self: int)` - opcode 09A2
- `removePickup(self: int)` - opcode 0215
- `reportMissionAudioEventAtObject(handle: int, soundId: int)` - opcode 097B
- `rotateObject(self: int, fromAngle: number, toAngle: number, collisionCheck: bool) -> bool` - opcode 034D
- `setObjectAnimCurrentTime(self: int, animationName: string, time: number)` - opcode 083A
- `setObjectAnimSpeed(self: int, animationName: string, speed: number)` - opcode 0836
- `setObjectAsStealable(self: int, state: bool)` - opcode 08E9
- `setObjectCollision(self: int, state: bool)` - opcode 0382
- `setObjectCollisionDamageEffect(self: int, state: bool)` - opcode 07F7
- `setObjectCoordinates(self: int, x: number, y: number, z: number)` - opcode 01BC
- `setObjectCoordinatesAndVelocity(self: int, x: number, y: number, z: number)` - opcode 0815
- `setObjectDynamic(self: int, state: bool)` - opcode 0392
- `setObjectHeading(self: int, heading: number)` - opcode 0177
- `setObjectHealth(self: int, health: int)` - opcode 071F
- `setObjectMass(self: int, mass: number)` - opcode 0906
- `setObjectProofs(self: int, bulletProof: bool, fireProof: bool, explosionProof: bool, collisionProof: bool, meleeProof: bool)` - opcode 09CA
- `setObjectQuaternion(self: int, x: number, y: number, z: number, w: number)` - opcode 07C4
- `setObjectRecordsCollisions(self: int, state: bool)` - opcode 04D9
- `setObjectRotation(self: int, x: number, y: number, z: number)` - opcode 0453
- `setObjectRotationVelocity(self: int, x: number, y: number, z: number)` - opcode 05A2
- `setObjectScale(self: int, scale: number)` - opcode 08D2
- `setObjectTurnMass(self: int, turnMass: number)` - opcode 0908
- `setObjectVelocity(self: int, xSpeed: number, ySpeed: number, zSpeed: number)` - opcode 0381
- `setObjectVisible(self: int, state: bool)` - opcode 0750
- `setPlay3dAudioStreamAtObject(handle: userdata, object: int)`
- `setRopeHeightForObject(self: int, height: number)` - opcode 0797
- `setUsesCollisionOfClosestObjectOfType(x: number, y: number, z: number, radius: number, modelId: int, state: bool)` - opcode 088D
- `setVisibilityOfClosestObjectOfType(x: number, y: number, z: number, radius: number, modelId: int, state: bool)` - opcode 0363
- `slideObject(self: int, fromX: number, fromY: number, fromZ: number, xSpeed: number, ySpeed: number, zSpeed: number, collisionCheck: bool) -> bool` - opcode 034E
- `switchObjectBrains(type: int, state: bool)` - opcode 0A46
- `taskComplexPickupObject(char_: int, object: int)` - opcode 07C9
- `taskGoToObject(char_: int, object: int, time: int, radius: number)` - opcode 06E2
- `taskLookAtObject(char_: int, object: int, time: int)` - opcode 0655
- `taskPickUpObject(char_: int, object: int, xOffset: number, yOffset: number, zOffset: number, boneId: int, _p7: int, animationName: string, animationFile: string, time: int)` - opcode 070A
- `taskPickUpSecondObject(char_: int, object: int, xOffset: number, yOffset: number, zOffset: number, boneId: int, _p7: int, animationName: string, animationFile: string, time: int)` - opcode 09A0
- `updatePickupMoneyPerDay(self: int, value: int)` - opcode 094A
- `winchCanPickObjectUp(self: int, state: bool)` - opcode 0916

### SA-MP

- `isSampAvailable()`
- `isSampfuncsLoaded()`
- `isSampLoaded()`
- `sampAddChatMessage(text: string, color: int)`
- `sampCreate3dText()`
- `sampCreate3dTextEx()`
- `sampDestroy3dText(labelid: int)`
- `sampGet3dTextInfoById(labelid: int)`
- `sampGetCarHandleBySampVehicleId(vehicleid: int)`
- `sampGetCharHandleBySampPlayerId(playerid: int)`
- `sampGetCurrentDialogId()`
- `sampGetCurrentDialogType()`
- `sampGetCurrentServerAddress()`
- `sampGetCurrentServerName()`
- `sampGetDialogCaption()`
- `sampGetDialogText()`
- `sampGetMaxPlayerId(streamed: bool?)`
- `sampGetObjectHandleBySampId(objectid: int)`
- `sampGetObjectSampIdByHandle(self: int)`
- `sampGetPlayerAnimationId(playerid: int)`
- `sampGetPlayerArmor(playerid: int)`
- `sampGetPlayerColor(playerid: int)`
- `sampGetPlayerCount(streamed: bool?)`
- `sampGetPlayerHealth(playerid: int)`
- `sampGetPlayerIdByCharHandle(self: int)`
- `sampGetPlayerNickname(playerid: int)`
- `sampGetPlayerPing(playerid: int)`
- `sampGetPlayerScore(playerid: int)`
- `sampGetPlayerSpecialAction(playerid: int)`
- `sampGetVehicleIdByCarHandle(self: int)`
- `sampHasDialogRespond(id: int)`
- `sampIs3dTextDefined(labelid: int)`
- `sampIsChatCommandDefined(command: string)`
- `sampIsDialogActive()`
- `sampIsDialogClientside()`
- `sampIsLocalPlayerSpawned()`
- `sampIsPlayerConnected(playerid: int)`
- `sampIsPlayerNpc(playerid: int)`
- `sampIsPlayerPaused(playerid: int)`
- `sampProcessChatInput(text: string)`
- `sampRegisterChatCommand(command: string, callback: function)`
- `sampRequestClass(classid: int)`
- `sampSendAimData(data: int)`
- `sampSendBulletData(data: int)`
- `sampSendChat(text: string)`
- `sampSendClickPlayer(playerid: int, source: int)`
- `sampSendClickTextdraw(id: int)`
- `sampSendDamageVehicle(id: int, panel: int, doors: int, lights: int, tires: int)`
- `sampSendDeathByPlayer(playerid: int, reason: int)`
- `sampSendDialogResponse(id: int, button: int, listitem: int, input: string)`
- `sampSendEditAttachedObject()`
- `sampSendEditObject()`
- `sampSendEnterVehicle(id: int, passenger: bool)`
- `sampSendExitVehicle(id: int)`
- `sampSendGiveDamage(id: int, damage: number, weapon: int, bodyPart: int)`
- `sampSendIncarData(data: int)`
- `sampSendInteriorChange(id: int)`
- `sampSendMenuQuit()`
- `sampSendMenuSelectRow(id: int)`
- `sampSendOnfootData(data: int)`
- `sampSendPassengerData(data: int)`
- `sampSendPickedUpPickup(id: int)`
- `sampSendRconCommand(cmd: string)`
- `sampSendRequestSpawn()`
- `sampSendScmEvent(event: int, id: int, param1: int, param2: int)`
- `sampSendSpawn()`
- `sampSendSpectatorData(data: int)`
- `sampSendTakeDamage(id: int, damage: number, weapon: int, bodyPart: int)`
- `sampSendTrailerData(data: int)`
- `sampSendUnoccupiedData(data: int)`
- `sampSendVehicleDestroyed(id: int)`
- `sampSet3dTextString(labelid: int, text: string)`
- `sampSetClientCommandDescription(command: string, descrption: string)`
- `sampSetDialogClientside(clientside: bool)`
- `sampSetSpecialAction(action: int)`
- `sampShowDialog(id: int, caption: string, text: string, button1: string, button2: string, style: int)`
- `sampSpawnPlayer()`
- `sampStorePlayerAimData(playerid: int, buffer: int)`
- `sampStorePlayerIncarData(playerid: int, buffer: int)`
- `sampStorePlayerOnfootData(playerid: int, buffer: int)`
- `sampStorePlayerPassengerData(playerid: int, buffer: int)`
- `sampStorePlayerTrailerData(playerid: int, buffer: int)`
- `sampUnregisterChatCommand(command: string)`

### Text

- `clearGxtEntry(gxt_key: string)`
- `clearPrints()` - opcode 00BE
- `clearSmallPrints()` - opcode 03EB
- `clearThisBigPrint(key: string)` - opcode 03D6
- `clearThisPrint(key: string)` - opcode 03D5
- `clearThisPrintBigNow(textStyle: int)` - opcode 0A0E
- `disablePlayerSprint(self: int, state: bool)` - opcode 06AF
- `displayText(offsetLeft: number, offsetTop: number, key: string)` - opcode 033E
- `displayTextClamped(offsetLeft: number, offsetTop: number, key: string, scale: number)` - opcode 0A70
- `displayTextWidget(offsetLeft: number, offsetTop: number, key: string)` - opcode 0A5C
- `displayTextWith2Numbers(offsetLeft: number, offsetTop: number, key: string, num1: int, num2: int)` - opcode 045B
- `displayTextWithFloat(leftTopX: number, leftTopY: number, key: string, value: number, precision: int)` - opcode 07FC
- `displayTextWithNumber(offsetLeft: number, offsetTop: number, key: string, num: int)` - opcode 045A
- `displayTextWithNumberClamped(offsetLeft: number, offsetTop: number, key: string, number: int, scale: number)` - opcode 0A71
- `getClipboardText()`
- `getExtraCarColours(self: int) -> int, int` - opcode 0A12
- `getFreeGxtKey(ascii: string)`
- `getGxtText(gxt_key: string)`
- `loadMissionText(tableName: string)` - opcode 054C
- `print(...)`
- `printBig(key: string, time: int, style: int)` - opcode 00BA
- `printBigQ(key: string, duration: int, style: int)` - opcode 0217
- `printHelp(key: string)` - opcode 03E5
- `printHelpConditional(key: string, type: int)` - opcode 0A81
- `printHelpConditionalHid(key: string, type: int)` - opcode 0A83
- `printHelpConditionalHidJoypad(key: string, type: int)` - opcode 0A86
- `printHelpConditionalHidKeyboard(key: string, type: int)` - opcode 0A87
- `printHelpConditionalTouch(key: string, type: int)` - opcode 0A82
- `printHelpConditionalTouchAdapted(key: string, type: int)` - opcode 0A85
- `printHelpConditionalTouchAnalog(key: string, type: int)` - opcode 0A88
- `printHelpConditionalTouchClassic(key: string, type: int)` - opcode 0A84
- `printHelpForever(key: string)` - opcode 0512
- `printHelpForeverConditional(key: string, type: int)` - opcode 0A6D
- `printHelpForeverConditionalHid(key: string, type: int)` - opcode 0A79
- `printHelpForeverConditionalHidJoypad(key: string, type: int)` - opcode 0A7C
- `printHelpForeverConditionalHidKeyboard(key: string, type: int)` - opcode 0A7D
- `printHelpForeverConditionalTouch(key: string, type: int)` - opcode 0A78
- `printHelpForeverConditionalTouchAdapted(key: string, type: int)` - opcode 0A7B
- `printHelpForeverConditionalTouchAnalog(key: string, type: int)` - opcode 0A7E
- `printHelpForeverConditionalTouchClassic(key: string, type: int)` - opcode 0A7A
- `printHelpForeverConditionalTouchDigital(key: string, type: int)` - opcode 0A7F
- `printHelpForeverConditionalTouchFlick(key: string, type: int)` - opcode 0A80
- `printHelpForeverWithNumber(gxt: string, number: int)` - opcode 0513
- `printString(text: string, time: int)`
- `printStringInStringNow(templateKey: string, replacementKey: string, duration: int, style: int)` - opcode 0384
- `printStringNow(text: string, time: int)`
- `printStyledString(text: string, time: int, style: int)`
- `printText(key: string, time: int, flag: int)` - opcode 00BB
- `printTextNow(key: string, time: int, flag: int)` - opcode 00BC
- `printWith2NumbersBig(key: string, num1: int, num2: int, duration: int, style: int)` - opcode 036D
- `printWith2NumbersNow(key: string, num1: int, num2: int, duration: int, style: int)` - opcode 02FD
- `printWith3Numbers(key: string, num1: int, num2: int, num3: int, duration: int, style: int)` - opcode 02FF
- `printWith4Numbers(key: string, num1: int, num2: int, num3: int, num4: int, duration: int, style: int)` - opcode 0302
- `printWith4NumbersNow(key: string, num1: int, num2: int, num3: int, num4: int, duration: int, style: int)` - opcode 0303
- `printWith6Numbers(key: string, num1: int, num2: int, num3: int, num4: int, num5: int, num6: int, duration: int, style: int)` - opcode 0308
- `printWithNumber(key: string, num: int, duration: int, flag: int)` - opcode 01E4
- `printWithNumberBig(key: string, num: int, duration: int, style: int)` - opcode 01E3
- `printWithNumberNow(key: string, num: int, duration: int, flag: int)` - opcode 01E5
- `setCharSayContext(self: int, speech: int) -> int` - opcode 0947
- `setCharSayContextImportant(self: int, _p2: int, _p3: bool, _p4: bool, _p5: bool) -> int` - opcode 09D5
- `setClipboardText(text: string)`
- `setExtraCarColours(self: int, color1: int, color2: int)` - opcode 0A11
- `setExtraColours(color: int, fade: bool)` - opcode 04F9
- `setExtraHospitalRestartPoint(x: number, y: number, z: number, radius: number, heading: number)` - opcode 08DF
- `setExtraPoliceStationRestartPoint(x: number, y: number, z: number, radius: number, heading: number)` - opcode 08E0
- `setFreeGxtEntry(ascii: string)`
- `setGxtEntry(gxt_key: string, ascii: string)`
- `setTextBackground(state: bool)` - opcode 0345
- `setTextCentre(state: bool)` - opcode 0342
- `setTextCentreSize(width: number)` - opcode 0344
- `setTextColour(red: int, green: int, blue: int, alpha: int)` - opcode 0340
- `setTextDropshadow(intensity: int, red: int, green: int, blue: int, alpha: int)` - opcode 060D
- `setTextEdge(size: int, red: int, green: int, blue: int, alpha: int)` - opcode 081C
- `setTextFont(font: int)` - opcode 0349
- `setTextJustify(state: bool)` - opcode 0341
- `setTextProportional(state: bool)` - opcode 0348
- `setTextRightJustify(state: bool)` - opcode 03E4
- `setTextScale(widthScale: number, heightScale: number)` - opcode 033F
- `setTextWrapx(width: number)` - opcode 0343

### Player

- `awardPlayerMissionRespect(value: int)` - opcode 0998
- `buildPlayerModel(self: int)` - opcode 070D
- `clearLastBuildingModelShotByPlayer(self: int)` - opcode 0A3B
- `createPlayer(modelId: int, x: number, y: number, z: number) -> int` - opcode 0053
- `deletePlayer(self: int)` - opcode 06DF
- `enableEntryExitPlayerGroupWarping(x: number, y: number, radius: number, state: bool)` - opcode 0864
- `ensurePlayerHasDriveByWeapon(self: int, ammo: int)` - opcode 0563
- `forceInteriorLightingForPlayer(self: int, state: bool)` - opcode 09D7
- `getCityPlayerIsIn(self: int) -> int` - opcode 0842
- `getNumOfModelsKilledByPlayer(self: int, modelId: int) -> int` - opcode 0298
- `getPlayerGroup(self: int) -> int` - opcode 07AF
- `getPlayerMaxArmour(self: int) -> int` - opcode 0945
- `getPlayerMoney(self: int) -> int` - opcode 010B
- `getRidOfPlayerProstitute()` - opcode 0A43
- `givePlayerClothes(self: int, textureHash: int, modelHash: int, bodyPart: int)` - opcode 0784
- `givePlayerClothesOutsideShop(self: int, textureName: string, modelName: string, bodyPart: int)` - opcode 087B
- `givePlayerMoney(self: int, money: int)` - opcode 0109
- `giveRemoteControlledModelToPlayer(handle: int, x: number, y: number, z: number, angle: number, modelId: int)` - opcode 046E
- `hasPlayerBoughtItem(itemId: int) -> bool` - opcode 0942
- `increasePlayerMaxArmour(self: int, value: int)` - opcode 055F
- `increasePlayerMaxHealth(self: int, value: int)` - opcode 055E
- `is2playerGameGoingOn() -> bool` - opcode 0800
- `isAttachedPlayerHeadingAchieved(self: int) -> bool` - opcode 0861
- `isLastBuildingModelShotByPlayer(self: int, modelId: int) -> bool` - opcode 0A3A
- `isPlayerClimbing(self: int) -> bool` - opcode 0A29
- `isPlayerControllable(self: int) -> bool` - opcode 03EE
- `isPlayerControlLocked()`
- `isPlayerControlOn(self: int) -> bool` - opcode 09E7
- `isPlayerDead(handle: int) -> bool` - opcode 0117
- `isPlayerInInfoZone(self: int, infoZone: string) -> bool` - opcode 0583
- `isPlayerInPositionForConversation(handle: int) -> bool` - opcode 089B
- `isPlayerInRemoteMode(self: int) -> bool` - opcode 0241
- `isPlayerPerformingStoppie(self: int) -> bool` - opcode 07F2
- `isPlayerPerformingWheelie(self: int) -> bool` - opcode 07F1
- `isPlayerPlaying(self: int) -> bool` - opcode 0256
- `isPlayerPressingHorn(self: int) -> bool` - opcode 0122
- `isPlayerTargettingAnything(self: int) -> bool` - opcode 068C
- `isPlayerTargettingObject(self: int, handle: int) -> bool` - opcode 0458
- `isPlayerUsingJetpack(self: int) -> bool` - opcode 0A0C
- `isPlayerWearing(self: int, modelName: string, bodyPart: int) -> bool` - opcode 0500
- `limitTwoPlayerDistance(distance: number)` - opcode 06F1
- `listenToPlayerGroupCommands(self: int, state: bool)` - opcode 07CB
- `lockPlayerControl(lock: bool)`
- `makePlayerFireProof(self: int, state: bool)` - opcode 055D
- `makePlayerGangDisappear()` - opcode 08F5
- `makePlayerGangReappear()` - opcode 08F6
- `makePlayerSafe(self: int)` - opcode 03EF
- `playerEnteredBuildingsiteCrane()` - opcode 079E
- `playerEnteredDockCrane()` - opcode 079D
- `playerEnteredLasVegasCrane()` - opcode 07FA
- `playerEnteredQuarryCrane()` - opcode 07F9
- `playerLeftCrane()` - opcode 079F
- `playerMadeProgress(progress: int)` - opcode 030C
- `playerTakeOffGoggles(self: int, animate: bool)` - opcode 09EB
- `releaseTwoPlayerDistance()` - opcode 06F2
- `resetNumOfModelsKilledByPlayer(self: int)` - opcode 0297
- `setEveryoneIgnorePlayer(player: int, state: bool)` - opcode 03BF
- `setHeadingForAttachedPlayer(self: int, heading: number, rotationSpeed: number)` - opcode 0858
- `setObjectOnlyDamagedByPlayer(self: int, state: bool)` - opcode 0875
- `setPlayerCanDoDriveBy(self: int, state: bool)` - opcode 0501
- `setPlayerControl(self: int, state: bool)` - opcode 01B4
- `setPlayerDisplayVitalStatsButton(playerId: int, state: bool)` - opcode 0960
- `setPlayerDrunkenness(self: int, intensity: int)` - opcode 052C
- `setPlayerDuckButton(playerId: int, state: bool)` - opcode 082A
- `setPlayerFastReload(self: int, state: bool)` - opcode 0331
- `setPlayerFireButton(playerId: int, state: bool)` - opcode 0881
- `setPlayerGroupRecruitment(self: int, state: bool)` - opcode 07B4
- `setPlayerGroupToFollowAlways(self: int, state: bool)` - opcode 0A20
- `setPlayerGroupToFollowNever(self: int, state: bool)` - opcode 0A31
- `setPlayerIsInStadium(state: bool)` - opcode 057E
- `setPlayerJumpButton(playerId: int, state: bool)` - opcode 0901
- `setPlayerModel(self: int, modelId: int)` - opcode 09C7
- `setPlayerMood(self: int, mood: int, time: int)` - opcode 04E3
- `setPlayerNeverGetsTired(self: int, state: bool)` - opcode 0330
- `setPlayerPlayerTargetting(_p1: int)` - opcode 06F3
- `setPlayerWeaponsScrollable(playerId: int, state: bool)` - opcode 0992
- `setPoliceIgnorePlayer(player: int, state: bool)` - opcode 01F7
- `setRadioToPlayersFavouriteStation()` - opcode 0A26

### World

- `addExplosion(x: number, y: number, z: number, type: int)` - opcode 020C
- `addExplosionVariableShake(x: number, y: number, z: number, type: int, shake: number)` - opcode 0948
- `clearOnscreenTimer(timer: int)` - opcode 014F
- `clearSpecificZonesToTriggerGangWar()` - opcode 090D
- `convertScreenCoordsToWorld3D(x: number, y: number, z: number)`
- `displayOnscreenTimer(timer: int, direction: int)` - opcode 014E
- `displayOnscreenTimerWithString(timer: int, direction: int, text: string)` - opcode 03C3
- `displayZoneNames(state: bool)` - opcode 09BA
- `extinguishFireAtPoint(x: number, y: number, z: number, radius: number)` - opcode 0980
- `fireHunterGun(self: int)` - opcode 0541
- `fireSingleBullet(fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number, energy: int)` - opcode 06BC
- `forceWeather(type: int)` - opcode 01B5
- `forceWeatherNow(type: int)` - opcode 01B6
- `freezeOnscreenTimer(state: bool)` - opcode 0396
- `getCurrentPopulationZoneType() -> int` - opcode 08D3
- `getCutsceneTime() -> int` - opcode 02E8
- `getGameTimer() -> int` - opcode 01BD
- `getGroundZFor3dCoord(x: number, y: number, z: number) -> number` - opcode 02CE
- `getMinutesToTimeOfDay(hours: int, minutes: int) -> int` - opcode 00C1
- `getNameOfInfoZone(x: number, y: number, z: number) -> string` - opcode 08F1
- `getNameOfZone(x: number, y: number, z: number) -> string` - opcode 0843
- `getNumberOfFiresInArea(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number) -> int` - opcode 0786
- `getNumberOfFiresInRange(x: number, y: number, z: number, radius: number) -> int` - opcode 06C3
- `getTimeOfDay() -> int, int` - opcode 00BF
- `getZoneDealerStrength(zone: int) -> int` - opcode 076B
- `getZoneGangStrength(zone: int, gangId: int) -> int` - opcode 076D
- `initZonePopulationSettings()` - opcode 08CA
- `isExplosionInArea(explosionType: int, leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number) -> bool` - opcode 0356
- `registerFastestTime(statId: int, value: int)` - opcode 042E
- `releaseWeather()` - opcode 01B7
- `setDisableMilitaryZones(state: bool)` - opcode 0A24
- `setMaxFireGenerations(limit: int)` - opcode 0828
- `setSpecificZoneToTriggerGangWar(zone: int)` - opcode 090C
- `setTimeOfDay(hours: int, minutes: int)` - opcode 00C0
- `setTimeOneDayForward()` - opcode 088E
- `setTimerBeepCountdownTime(timer: int, timeInSec: int)` - opcode 0890
- `setTimeScale(scale: number)` - opcode 015D
- `setWeatherToAppropriateTypeNow()` - opcode 0915
- `setZoneDealerStrength(zone: int, strength: int)` - opcode 076A
- `setZoneGangStrength(zoneId: int, gangId: int, density: int)` - opcode 076C
- `setZoneNoCops(zone: int, state: bool)` - opcode 09B7
- `setZonePopulationRace(zone: int, _p2: int)` - opcode 0874
- `setZonePopulationType(zone: int, type: int)` - opcode 0767
- `switchOnGroundSearchlight(self: int, state: bool)` - opcode 0A02
- `switchWorldProcessing(state: bool)` - opcode 03B7

### Camera

- `allowFixedCameraCollision(state: bool)` - opcode 09EC
- `attachCameraToChar(handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number, tilt: number, switchStyle: int)` - opcode 067C
- `attachCameraToCharLookAtChar(handle: int, xOffset: number, yOffset: number, zOffset: number, char_: int, tilt: number, switchStyle: int)` - opcode 067E
- `attachCameraToVehicle(handle: int, xOffset: number, yOffset: number, zOffset: number, xRotation: number, yRotation: number, zRotation: number, tilt: number, switchStyle: int)` - opcode 0679
- `attachCameraToVehicleLookAtChar(handle: int, xOffset: number, yOffset: number, zOffset: number, char_: int, tilt: number, switchStyle: int)` - opcode 067B
- `attachCameraToVehicleLookAtVehicle(handle: int, xOffset: number, yOffset: number, zOffset: number, vehicle: int, tilt: number, switchStyle: int)` - opcode 067A
- `cameraIsVectorMoveRunning() -> bool` - opcode 0933
- `cameraIsVectorTrackRunning() -> bool` - opcode 0934
- `cameraPersistFov(state: bool)` - opcode 0931
- `cameraPersistPos(state: bool)` - opcode 0930
- `cameraPersistTrack(state: bool)` - opcode 092F
- `cameraResetNewScriptables()` - opcode 0925
- `cameraSetLerpFov(from: number, to: number, time: int, ease: bool)` - opcode 0922
- `cameraSetShakeSimulationSimple(type: int, timeInMs: number, intensity: number)` - opcode 099C
- `cameraSetVectorMove(fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number, time: int, ease: bool)` - opcode 0936
- `cameraSetVectorTrack(fromX: number, fromY: number, fromZ: number, toX: number, toY: number, toZ: number, time: int, ease: bool)` - opcode 0920
- `doCameraBump(xOffset: number, yOffset: number)` - opcode 0834
- `getActiveCameraCoordinates() -> number, number, number` - opcode 068D
- `getActiveCameraPointAt() -> number, number, number` - opcode 068E
- `getCameraFov() -> number` - opcode 0801
- `getDebugCameraCoordinates() -> number, number, number` - opcode 0454
- `getDebugCameraPointAt() -> number, number, number` - opcode 0463
- `getPlayerInCarCameraMode() -> int` - opcode 0A39
- `isDebugCameraOn() -> bool` - opcode 05A0
- `pointCameraAtCar(vehicle: int, mode: int, switchStyle: int)` - opcode 0158
- `pointCameraAtChar(char_: int, mode: int, switchStyle: int)` - opcode 0159
- `pointCameraAtPoint(x: number, y: number, z: number, switchStyle: int)` - opcode 0160
- `resetVehicleCameraTweak()` - opcode 09F0
- `restoreCamera()` - opcode 015A
- `restoreCameraJumpcut()` - opcode 02EB
- `setCameraBehindPlayer()` - opcode 0373
- `setCameraInFrontOfChar(handle: int)` - opcode 0944
- `setCameraInFrontOfPlayer()` - opcode 03C8
- `setCameraPositionUnfixed(xOffset: number, yOffset: number)` - opcode 0A25
- `setCameraZoom(zoom: int)` - opcode 032A
- `setCinemaCamera(state: bool)` - opcode 093D
- `setFirstPersonInCarCameraMode(state: bool)` - opcode 0822
- `setFixedCameraPosition(x: number, y: number, z: number, xRotation: number, yRotation: number, zRotation: number)` - opcode 015F
- `setPhotoCameraEffect(state: bool)` - opcode 0A2F
- `setPlayerInCarCameraMode(mode: int)` - opcode 09AD
- `setTwoPlayerCameraMode(state: bool)` - opcode 06E0
- `setVehicleCameraTweak(modelId: int, distance: number, altitude: number, angle: number)` - opcode 09EF
- `shakeCam(intensity: int)` - opcode 0003

### Rendering

- `addShortRangeSpriteBlipForContactPoint(x: number, y: number, z: number, sprite: int) -> int` - opcode 0570
- `addShortRangeSpriteBlipForCoord(x: number, y: number, z: number, sprite: int) -> int` - opcode 04CE
- `addSpriteBlipForContactPoint(x: number, y: number, z: number, sprite: int) -> int` - opcode 02A7
- `addSpriteBlipForCoord(x: number, y: number, z: number, sprite: int) -> int` - opcode 02A8
- `drawCorona(x: number, y: number, z: number, size: number, coronaType: int, flareType: int, r: int, g: int, b: int)` - opcode 024F
- `drawCrosshair(state: bool)` - opcode 09A3
- `drawLightWithRange(x: number, y: number, z: number, red: int, green: int, blue: int, radius: number)` - opcode 09E5
- `drawOddjobTitleBeforeFade(state: bool)` - opcode 0A2D
- `drawRect(x: number, y: number, width: number, height: number, r: int, g: int, b: int, a: int)` - opcode 038E
- `drawShadow(textureType: int, x: number, y: number, z: number, angle: number, length: number, intensity: int, r: int, g: int, b: int)` - opcode 016F
- `drawSphere(x: number, y: number, z: number, radius: number)` - opcode 03A1
- `drawSprite(memorySlot: int, offsetLeft: number, offsetTop: number, width: number, height: number, r: int, g: int, b: int, a: int)` - opcode 038D
- `drawSpriteWithRotation(memorySlot: int, offsetLeft: number, offsetTop: number, height: number, width: number, angle: number, red: int, green: int, blue: int, alpha: int)` - opcode 074B
- `drawSubtitlesBeforeFade(state: bool)` - opcode 0A2C
- `drawWeaponshopCorona(x: number, y: number, z: number, size: number, coronaType: int, flareType: int, r: int, g: int, b: int)` - opcode 04D5
- `drawWindow(leftTopX: number, leftTopY: number, rightBottomX: number, rightBottomY: number, header: string, zIndex: int)` - opcode 0937
- `loadSprite(memorySlot: int, spriteName: string)` - opcode 038F
- `loadTextureDictionary(name: string)` - opcode 0390
- `removeTextureDictionary()` - opcode 0391
- `renderCreateFont(font: string, height: number, flags: int, charset: int?)`
- `renderDrawBox(posX: number, posY: number, sizeX: number, sizeY: number, color: int)`
- `renderDrawBoxWithBorder(posX: number, posY: number, sizeX: number, sizeY: number, color: int, bsize: number, bcolor: int)`
- `renderDrawLine(pos1X: number, pos1Y: number, pos2X: number, pos2Y: number, width: number, color: int)`
- `renderDrawPolygon(posX: number, posY: number, sizeX: number, sizeY: number, corners: int, rotation: number, color: int)`
- `renderDrawTexture(raster: ImTextureID, posX: number, posY: number, sizeX: number, sizeY: number, rotation: number, color: int)`
- `renderFontDrawText(font: int, text: string, posX: number, posY: number, color: int, ignore_color_tags: bool?)`
- `renderGetFontDrawHeight(font: int)`
- `renderGetFontDrawTextLength(font: int, text: string, ignore_color_tags: bool?)`
- `renderGetTextureSize(raster: ImTextureID)`
- `renderLoadTextureFromFile(file: string)`
- `renderLoadTextureFromFileInMemory(ptr: int, len: int)`
- `renderReleaseFont(font: int)`
- `renderReleaseTexture(raster: ImTextureID)`
- `setAlwaysDraw3dMarkers(state: bool)` - opcode 08A8
- `setCutsceneModelTexture(_p1: string, _p2: string)` - opcode 08F0
- `setObjectDrawLast(self: int, state: bool)` - opcode 0418
- `setObjectRenderScorched(self: int, state: bool)` - opcode 0654
- `setSpritesDrawBeforeFade(state: bool)` - opcode 03E3
- `setTextDrawBeforeFade(state: bool)` - opcode 03E0
- `setWidgetTexture(widgetId: int, textureName: string)` - opcode 0A6E
- `useRenderCommands(state: bool)` - opcode 03F0

### RakNet

- `raknetBitStreamDecodeString(bs: BitStream, size: int)`
- `raknetBitStreamEncodeString(bs: BitStream, str: string)`
- `raknetBitStreamGetDataPtr(bs: BitStream)`
- `raknetBitStreamGetNumberOfBitsUsed(bs: BitStream)`
- `raknetBitStreamGetNumberOfBytesUsed(bs: BitStream)`
- `raknetBitStreamGetNumberOfUnreadBits(bs: BitStream)`
- `raknetBitStreamGetReadOffset(bs: BitStream)`
- `raknetBitStreamGetWriteOffset(bs: BitStream)`
- `raknetBitStreamIgnoreBits(bs: BitStream, amount: int)`
- `raknetBitStreamReadBool(bs: BitStream)`
- `raknetBitStreamReadBuffer(bs: BitStream, buffer: int, size: int)`
- `raknetBitStreamReadFloat(bs: BitStream)`
- `raknetBitStreamReadInt16(bs: BitStream)`
- `raknetBitStreamReadInt32(bs: BitStream)`
- `raknetBitStreamReadInt8(bs: BitStream)`
- `raknetBitStreamReadString(bs: BitStream, size: int)`
- `raknetBitStreamResetReadPointer(bs: BitStream)`
- `raknetBitStreamResetWritePointer(bs: BitStream)`
- `raknetBitStreamSetReadOffset(bs: BitStream, offset: int)`
- `raknetBitStreamSetWriteOffset(bs: BitStream, offset: int)`
- `raknetBitStreamWriteBitStream(bs: BitStream, value: BitStream)`
- `raknetBitStreamWriteBool(bs: BitStream, value: bool)`
- `raknetBitStreamWriteBuffer(bs: BitStream, buffer: int, size: int)`
- `raknetBitStreamWriteFloat(bs: BitStream, value: number)`
- `raknetBitStreamWriteInt16(bs: BitStream, value: int)`
- `raknetBitStreamWriteInt32(bs: BitStream, value: int)`
- `raknetBitStreamWriteInt8(bs: BitStream, value: int)`
- `raknetBitStreamWriteString(bs: BitStream, value: string)`
- `raknetDeleteBitStream(bs: BitStream)`
- `raknetEmulPacketReceiveBitStream(packet: int, bs: BitStream)`
- `raknetEmulRpcReceiveBitStream(rpc: int, bs: BitStream)`
- `raknetNewBitStream()`
- `raknetResetBitStream(bs: BitStream)`
- `raknetSendBitStream(bs: BitStream)`
- `raknetSendBitStreamEx(bs: BitStream, priority: int, reliability: int, channel: int)`
- `raknetSendRpc(rpc: int, bs: BitStream)`
- `raknetSendRpcEx(rpc: int, bs: BitStream, priority: int, reliability: int, channel: int, timestamp: bool)`

### Input

- `addWidgetFlag(widgetId: int, widgetFlag: int)` - opcode 0A60
- `createShopWidget(menuName: string)` - opcode 0A69
- `deleteWidget(widgetId: int)` - opcode 0A6B
- `getHashKey(text: string) -> int` - opcode 09A9
- `getWidgetPosition(widgetId: int) -> number, number, number, number` - opcode 0A5D
- `getWidgetValue(widgetId: int) -> number` - opcode 0A5A
- `getWidgetValue2(widgetId: int) -> number, number` - opcode 0A5B
- `hideAllFrontendBlips(state: bool)` - opcode 09AC
- `hideCharWeaponForScriptedCutscene(self: int, state: bool)` - opcode 06AB
- `hidImplements(hidId: int) -> bool` - opcode 0A76
- `isCarTouchingCar(self: int, handle: int) -> bool` - opcode 09CB
- `isCharTouchingChar(self: int, handle: int) -> bool` - opcode 0A1B
- `isCharTouchingObject(self: int, object: int) -> bool` - opcode 0179
- `isCharTouchingObjectOnFoot(self: int, object: int) -> bool` - opcode 023B
- `isCharTouchingVehicle(self: int, handle: int) -> bool` - opcode 0547
- `isHidPressed(hidId: int) -> bool` - opcode 0A90
- `isHidReleased(hidId: int) -> bool` - opcode 0A8D
- `isTouchEnabled() -> bool` - opcode 0A64
- `isVehicleTouchingObject(self: int, handle: int) -> bool` - opcode 0897
- `isWidgetDoubletapped(widgetId: int) -> bool` - opcode 0A53
- `isWidgetPressed(widgetId: int) -> bool` - opcode 0A51
- `isWidgetPressedEx(widget_id: int, frames: int)`
- `isWidgetReleased(widgetId: int) -> bool` - opcode 0A52
- `isWidgetSwiped(widgetId: int) -> bool` - opcode 0A54
- `isWidgetSwipedLeft(widgetId: int) -> bool` - opcode 0A55
- `isWidgetSwipedRight(widgetId: int) -> bool` - opcode 0A56
- `removeWidgetFlag(widgetId: int, widgetFlag: int)` - opcode 0A61
- `setGameKeyState(key: int, value: int)`
- `setWidgetInfo(widgetId: int, _p2: int, _p3: int, _p4: int, _p5: int, _p6: int, _p7: number, key: string)` - opcode 0A8A
- `setWidgetInfo2(widgetId: int, _p2: int, _p3: int, _p4: int, _p5: int, _p6: int, key: string)` - opcode 0A8B
- `setWidgetSliderRange(widgetId: int, rangeX: number, rangeY: number)` - opcode 0A5F
- `setWidgetValue(widgetId: int, _p2: number)` - opcode 0A5E
- `setWidgetValue2(widgetId: int, _p2: number, _p3: number)` - opcode 0A89
- `setWidgetValue3(widgetId: int, x: number, y: number, z: number)` - opcode 0A73

### Audio

- `addExplosionNoSound(x: number, y: number, z: number, type: int)` - opcode 0565
- `addOneOffSound(x: number, y: number, z: number, soundId: int)` - opcode 018C
- `al_get_audiostream_handle(handle: userdata)`
- `al_is_audiostream_available()`
- `clearMissionAudio(slotId: int)` - opcode 040D
- `getAudioStreamLength(handle: userdata)`
- `getAudioStreamState(handle: userdata)`
- `getAudioStreamVolume(handle: userdata)`
- `getNumberOfInstancesOfStreamedScript(id: int) -> int` - opcode 0926
- `getSoundLevelAtCoords(handle: int, x: number, y: number, z: number) -> number` - opcode 0855
- `hasMissionAudioFinished(slotId: int) -> bool` - opcode 03D2
- `hasMissionAudioLoaded(slotId: int) -> bool` - opcode 03D0
- `hasStreamedScriptLoaded(id: int) -> bool` - opcode 08AB
- `load3dAudioStream(path: string)`
- `load3dAudioStreamFromMemory(address: int, size: int)`
- `loadAllStreamingModels()` - opcode 0A8C
- `loadAudioStream(path: string)`
- `loadAudioStreamFromMemory(address: int, size: int)`
- `loadMissionAudio(slotId: int, audioId: int)` - opcode 03CF
- `markStreamedScriptAsNoLongerNeeded(id: int)` - opcode 090F
- `playMissionAudio(slotId: int)` - opcode 03D1
- `releaseAudioStream(handle: userdata)`
- `removeStreamedScript(id: int)` - opcode 0910
- `reportMissionAudioEventAtPosition(x: number, y: number, z: number, soundId: int)` - opcode 097A
- `setAudioStreamPosition(handle: userdata, pos: number)`
- `setAudioStreamState(handle: userdata, state: int)`
- `setAudioStreamVolume(handle: userdata, volume: number)`
- `setMissionAudioPosition(slotId: int, x: number, y: number, z: number)` - opcode 03D7
- `setPlay3dAudioStreamAtCoordinates(handle: userdata, x: number, y: number, z: number)`
- `startNewStreamedScript(id: int, args: int)` - opcode 0913
- `streamScript(id: int)` - opcode 08A9
- `switchAudioZone(zone: int, state: bool)` - opcode 0917
- `switchStreaming(state: bool)` - opcode 03AF

### Script

- `addEventHandler(name: string, handler: function)`
- `addGroupDecisionMakerEventResponse(self: int, eventId: int, taskId: int, respect: number, hate: number, like: number, dislike: number, inCar: bool, onFoot: bool)` - opcode 074A
- `clearAllScriptFireFlags()` - opcode 0986
- `clearAllScriptRoadblocks()` - opcode 04C1
- `clearGroupDecisionMakerEventResponse(self: int, eventId: int)` - opcode 0749
- `createScriptRoadblock(leftBottomX: number, leftBottomY: number, leftBottomZ: number, rightTopX: number, rightTopY: number, rightTopZ: number, type: int)` - opcode 04C0
- `doesScriptFireExist(handle: int) -> bool` - opcode 0973
- `getScriptFireCoords(self: int) -> number, number, number` - opcode 06F5
- `getScriptTaskStatus(self: int, taskId: int) -> int` - opcode 062E
- `isScriptFireExtinguished(self: int) -> bool` - opcode 02D0
- `isSkipWaitingForScriptToFadeIn() -> bool` - opcode 0A36
- `registerAttractorScriptBrainForCodeUse(id: int, _p2: string)` - opcode 0884
- `registerScriptBrainForCodeUse(id: int, _p2: string)` - opcode 07D3
- `reloadScripts()`
- `removeAllScriptFires()` - opcode 031A
- `removeScriptFire(self: int)` - opcode 02D1
- `script_author(...)`
- `script_authors(...)`
- `script_dependencies(...)`
- `script_description(description: string)`
- `script_moonloader(moonloader: int)`
- `script_name(name: string)`
- `script_properties(...)`
- `script_url(url: string)`
- `script_version(version: string)`
- `script_version_number(number: int)`
- `setScriptCoopGame(state: bool)` - opcode 0A3F
- `setScriptLimitToGangSize(maxSize: int)` - opcode 08F4
- `setUpConversationEndNodeWithScriptedSpeech(speech: string, speechSoundId: int)` - opcode 0A3C
- `setUpConversationNodeWithScriptedSpeech(question: string, positiveAnswer: string, negativeAnswer: string, questionSoundId: int, positiveAnswerSoundId: int, negativeAnswerSoundId: int)` - opcode 0A18
- `startScriptFire(x: number, y: number, z: number, propagation: int, size: int) -> int` - opcode 02CF
- `thisScript()`
- `wait(ms: number)`

### Radar & markers

- `addBlipForCoord(x: number, y: number, z: number) -> int` - opcode 018A
- `addBlipForCoordOld(x: number, y: number, z: number, colour: int, display: int) -> int` - opcode 0167
- `addBlipForSearchlight(searchlight: int) -> int` - opcode 06C4
- `changeBlipColour(self: int, color: int)` - opcode 0165
- `changeBlipDisplay(self: int, display: int)` - opcode 018B
- `changeBlipScale(self: int, size: int)` - opcode 0168
- `checkpointSave(_p1: int)` - opcode 0A6F
- `checkpointSaveOddjob(_p1: int)` - opcode 0A77
- `createCheckpoint(type: int, x: number, y: number, z: number, pointX: number, pointY: number, pointZ: number, radius: number) -> int` - opcode 06D5
- `createUser3dMarker(x: number, y: number, z: number, color: int) -> int` - opcode 0A40
- `deleteCheckpoint(self: int)` - opcode 06D6
- `displayRadar(state: bool)` - opcode 0581
- `doesBlipExist(handle: int) -> bool` - opcode 075C
- `getTargetBlipCoordinates()`
- `isCheckpointResuming(_p1: bool) -> bool` - opcode 0A74
- `removeBlip(self: int)` - opcode 0164
- `removeUser3dMarker(self: int)` - opcode 0A41
- `setBlipAlwaysDisplayOnZoomedRadar(self: int, state: bool)` - opcode 07BF
- `setBlipAsFriendly(self: int, state: bool)` - opcode 07E0
- `setBlipEntryExit(self: int, x: number, y: number, radius: number)` - opcode 08DC
- `setCheckpointCoords(self: int, x: number, y: number, z: number)` - opcode 07F3
- `setCheckpointHeading(self: int, heading: number)` - opcode 0996
- `setCoordBlipAppearance(self: int, color: int)` - opcode 08FB
- `setRadarZoom(zoom: int)` - opcode 075B
- `showBlipsOnAllLevels(state: bool)` - opcode 09A6

### Data

- `allocateMemory(size: int)`
- `decodeJson(json: string)`
- `encodeJson(table: table, compact: bool?)`
- `freeMemory(memory: int)`
- `representFloatAsInt(f: number)`
- `representIntAsFloat(i: int)`

## 4. Libraries (`require`)

These come with AL Loader in `lib/`. Load one with `require "name"`.

- `alloader`: Built-in library: alloader (AL Loader)
- `android`
- `basexx`: util functions
- `binaryheap`: Binary heap implementation A binary heap (or binary tree) is a [sorting algorithm](http://en.wikipedia.org/wiki/Binary_heap). The 'plain binary heap' is managed by positions. Which are hard to get once an element is inserted. It can be anyw
- `bitex`
- `cjson.safe`: cjson.safe implemented in lua
- `cjson.util`: Various common routines used by the Lua CJSON package Mark Pulford <mark@kyne.au>
- `copas.ftp`: identical to the socket.ftp module except that it uses async wrapped Copas sockets
- `copas.http`: Full copy of the LuaSocket code, modified to include https and http/https redirects, and Copas async enabled. HTTP/1.1 client support for the Lua language. LuaSocket toolkit. Author: Diego Nehab
- `copas.lock`: registry, locks indexed by the coroutines using them.
- `copas.queue`
- `copas.semaphore`: registry, semaphore indexed by the coroutines using them.
- `copas.smtp`: identical to the socket.smtp module except that it uses async wrapped Copas sockets
- `copas.timer`
- `copas`: Copas - Coroutine Oriented Portable Asynchronous Services A dispatcher based on coroutines that can be used by TCP/IP servers. Uses LuaSocket as the interface with the TCP/IP stack. Authors: Andre Carregal, Javier Guerra, and Fabio Mascaren
- `encoding`: AL Loader: converts with the loader's built-in functions
- `fAwesome6`
- `fAwesome6_solid`
- `game.globals`: From Sanny Builder 3
- `game.keys`
- `game.models`: default.ide
- `game.weapons`
- `inicfg`: The ini file config library. AL Loader: '/' is the separator on every platform it runs on (Windows accepts it too).
- `inspect`
- `jsoncfg`: Built-in library: jsoncfg
- `ltn12`: LTN12 - Filters, sources, sinks and pumps. LuaSocket toolkit. Author: Diego Nehab
- `matrix3x3`: Matrix3X3 class authors: MTA Team (original MTA's CMatrix), FYP (lua implementation)
- `md5`
- `mime`: MIME support for the Lua language. Author: Diego Nehab Conforming to RFCs 2045-2049
- `mimgui.cdefs`: [[ BEGIN AUTOGENERATED SEGMENT ]]
- `mimgui.imgui`: load dll: cimgui lives in AL Loader's own library (liballoader.so)
- `mimgui`
- `moonloader`: Message Prefix Types
- `notifications`
- `requests`: Lua Requests library for http ease
- `sa_renderfix`: Built-in library: sa_renderfix
- `samp.events.bitstream_io`
- `samp.events.core`
- `samp.events.extra_types`
- `samp.events.handlers`: onSendGiveDamage, onSendTakeDamage
- `samp.events.utils`
- `samp.events`
- `samp.raknet`
- `samp.synchronization`
- `sampfuncs`: RPCs
- `sandbox`
- `sha1.bit32_ops`
- `sha1.bit_ops`
- `sha1.common`: Merges four bytes into a uint32 number.
- `sha1`: Meta fields retained for compatibility.
- `sha1.lua53_ops`
- `sha1.pure_lua_ops`
- `socket.ftp`: FTP support for the Lua language LuaSocket toolkit. Author: Diego Nehab
- `socket.headers`: Canonic header field capitalization LuaSocket toolkit. Author: Diego Nehab
- `socket.http`: HTTP/1.1 client support for the Lua language. LuaSocket toolkit. Author: Diego Nehab
- `socket.mbox`
- `socket.smtp`: SMTP client support for the Lua language. LuaSocket toolkit. Author: Diego Nehab
- `socket.tp`: Unified SMTP/FTP subsystem LuaSocket toolkit. Author: Diego Nehab
- `socket.url`: URI parsing, composition and relative URL resolution LuaSocket toolkit. Author: Diego Nehab
- `socket`: LuaSocket helper module Author: Diego Nehab
- `ssl.https`: LuaSec 1.3.2 Author: Pablo Musa Author: Tomas Guisasola
- `ssl`: LuaSec 1.3.2
- `timerwheel`: Timer wheel implementation Efficient timer for timeout related timers: fast insertion, deletion, and execution (all as O(1) implemented), but with lesser precision. This module will not provide the timer/runloop itself. Use your own runloop
- `vector3d`: Vector3D class authors: MTA Team (original MTA's CVector), FYP (lua implementation)
- `widgets`: Built-in library: widgets

## 5. Guides

### Getting started

AL Loader (Alyn Lua Loader) runs Lua scripts inside ReSA Multiplayer on
Android, iOS and PC. Scripts are plain `.lua` files; the loader uses LuaJIT
(Lua 5.1 with the `ffi` and `bit` libraries).

#### Where scripts live

Everything is in the **Mods** tab of the Files screen, in `mods/AL Loader/`:

| Folder | What goes there |
|---|---|
| `scripts/` | Your scripts. Every `.lua` / `.luac` here starts with the game. |
| `lib/` | Libraries scripts `require` (mimgui, samp.events, inicfg, ...). Comes with the app; do not edit, it is replaced on updates. |
| `config/` | Settings files scripts save (inicfg, jsoncfg, mimgui window positions). Made the first time a script saves something. |
| `logs/` | `alloader.log`: what the loader did and every script error. |

A `.lua` dropped straight into `mods/AL Loader/` (not `scripts/`) is **not
loaded**. The launcher offers to move such files for you.

#### Your first script

Create `scripts/hello.lua` (the Files tab has New file and an editor):

```lua
script_name("Hello")
script_author("You")

function main()
  -- wait until the player exists
  while not isSampAvailable() do wait(100) end
  sampAddChatMessage("{33AAFF}[Hello]{FFFFFF} AL Loader works!", -1)
  sampRegisterChatCommand("hello", function(arg)
    sampAddChatMessage("Hello " .. (arg ~= "" and arg or "world"), 0xFFFFFFFF)
  end)
  wait(-1) -- keep the script alive
end
```

Start the game, join a server and type `/hello`.

#### Turning AL Loader on or off

Settings > AL Loader. With it off nothing is loaded. With no scripts in
`scripts/` it does nothing and costs nothing.

#### When something does not work

Open `logs/alloader.log` (or the Script Manager's Log tab). A script that
errors is stopped and the error is written there with the line number.

### Script structure

#### Information

Call these at the top of the file. They show in the Script Manager.

```lua
script_name("My script")
script_author("Name")              -- or script_authors("A", "B")
script_version("1.2")
script_version_number(12)
script_description("What it does")
script_url("https://...")
script_dependencies("mimgui", "samp.events")
script_properties("work-in-pause") -- keep running while the game is paused
```

#### main and wait

`main()` runs as the script's first coroutine. `wait(ms)` gives the game
control back: `wait(0)` waits one frame, `wait(-1)` sleeps forever (the
script stays loaded and its events and commands keep working).

```lua
function main()
  while true do
    wait(1000)
    print("one second")
  end
end
```

Never loop without `wait`: the game freezes until the loop ends.

#### Threads

```lua
local t = lua_thread.create(function(a, b)
  wait(500)
  print(a + b)
end, 1, 2)
-- t:status() -> "running", "suspended", "dead" ...; t:terminate()
```

#### Global values

| Name | Meaning |
|---|---|
| `PLAYER_PED` | Your character's handle (use it with the `Char` functions). |
| `PLAYER_HANDLE` | Your player handle (the `Player` functions). |
| `AL_VERSION` | Loader version, major*1000000 + minor*1000 + patch. |
| `AL_PLATFORM` | `"android"`, `"ios"` or `"windows"`. |
| `AL_DPI_SCALE` | Screen scale for UI sizes (about 2 on phones, 1 on PC). |
| `MONET_DPI_SCALE`, `MONET_VERSION` | The same two values under MonetLoader's names, so its scripts size their windows correctly. |

#### Other scripts

```lua
for _, s in ipairs(script.list()) do print(s.name, s.filename) end
local other = script.find("Chat Log")
if other then other:reload() end
script.load(getWorkingDirectory() .. "/scripts/other.lua")
thisScript():unload()
```

`import("other.lua")` loads another script and returns what it exported
through `EXPORTS`.

#### Files and folders

`getWorkingDirectory()` is `mods/AL Loader`; `getGameDirectory()` is the
game files folder. Paths use `/` on every platform. `require "name"`
searches `lib/`, then `scripts/`.

### Events

Define a global function with the event's name, or register any number of
handlers with `addEventHandler("onTouch", fn)`.

| Event | Arguments | Notes |
|---|---|---|
| `onSystemInitialized()` | | All scripts are loaded. |
| `onScriptLoad(script)` | script | Another script was loaded. |
| `onScriptTerminate(script, quitGame)` | script, bool | A script stopped (yours too: compare `script.id == thisScript().id`). |
| `onExitScript(quitGame)` | bool | This script is about to stop. |
| `onQuitGame()` | | The game is closing. |
| `onScriptMessage(text, script)` | string, script | A script printed a line. |
| `onSystemMessage(text, type, script)` | string, int, script | The loader logged a line. |
| `onD3DPresent()` | | Every frame, while drawing is open: put `render*` calls here. |
| `onTouch(type, id, x, y)` | int, int, int, int | A finger: type 1 up, 2 down, 3 move. Return `false` to keep the touch from the game. |
| `onSendRpc(id, bs, priority, reliability, channel)` | | An RPC the client sends. Return `false` to drop it, or new values to change it. |
| `onReceiveRpc(id, bs)` | | An RPC from the server. Return `false` to drop it. |
| `onSendPacket(id, bs, priority, reliability, channel)` | | A packet the client sends (sync data). |
| `onReceivePacket(id, bs)` | | A packet from the server. |

The RakNet events give you a `BitStream`; read it with the
`raknetBitStreamRead*` functions. Most scripts use the **samp.events**
library instead, which decodes every SA-MP RPC into named handlers:

```lua
local sampev = require "samp.events"

function sampev.onServerMessage(color, text)
  if text:find("password") then return false end -- hide the line
end

function sampev.onSendChat(message)
  return { message:upper() } -- change what you send
end
```

Some of its handlers: `onServerMessage`, `onChatMessage`, `onShowDialog`,
`onSendDialogResponse`, `onSendCommand`, `onSendChat`, `onSetPlayerPos`,
`onCreate3DText`, `onShowTextDraw`, `onPlayerJoin`, `onPlayerQuit`. Open
`lib/samp/events.lua` in the Files tab for the full list and argument names.

### Drawing on screen

#### render functions

Call them from `onD3DPresent()`, which runs every frame while the frame is
being drawn. Coordinates are screen pixels (`getScreenResolution()`);
colours are `0xAARRGGBB`.

```lua
local font

function onD3DPresent()
  if not font then return end
  local sw, sh = getScreenResolution()
  renderDrawBox(20, sh - 80, 220, 40, 0xAA000000)
  renderFontDrawText(font, "Hello", 30, sh - 70, 0xFFFFFFFF)
end

function main()
  font = renderCreateFont("Arial", 12 * AL_DPI_SCALE, 5) -- 5 = bold + border
  wait(-1)
end
```

Useful: `renderDrawLine`, `renderDrawBoxWithBorder`, `renderDrawPolygon`,
`renderLoadTextureFromFile`, `renderDrawTexture`,
`renderGetFontDrawTextLength`, `renderGetFontDrawHeight`. Text accepts
`{RRGGBB}` colour tags.

#### 3D positions on screen

```lua
local x, y, z = getCharCoordinates(ped)
local visible, sx, sy = convert3DCoordsToScreenEx(x, y, z + 1.0, true, true)
if visible then renderDrawLine(sx - 10, sy, sx + 10, sy, 2, 0xFFFF0000) end
```

#### Game text

`printString(text, ms)`, `printStringNow`, `printBig(gxt, ms, style)` and the
`displayText*` functions draw the game's own text styles.

`displayText*`, `drawRect` and `drawSprite` use the game's 640x448 script
space, kept 4:3 and centred on wide screens (x = 320 is the middle of the
screen). A script written for a stretched 640x448 screen can
`require "sa_renderfix"` to keep its layout. Call `useRenderCommands(true)`
once before drawing with them: only then does the game clear the list each
frame (128 rectangles and 96 text lines at most).

### Windows and menus (mimgui)

`mimgui` is Dear ImGui 1.72 for Lua. Windows react to touch (and mouse and
keyboard on PC); a text field opens the keyboard. A finger that lands on an
AL window does not reach the game.

```lua
local imgui = require "mimgui"
local show = imgui.new.bool(false)
local volume = imgui.new.float(0.5)
local name = imgui.new.char[64]("player")

imgui.OnInitialize(function()
  imgui.GetIO().IniFilename = nil -- do not save window positions
end)

imgui.OnFrame(function() return show[0] end, function()
  imgui.SetNextWindowSize(imgui.ImVec2(300 * AL_DPI_SCALE, 0), imgui.Cond.FirstUseEver)
  imgui.Begin("My window", show)
  imgui.SliderFloat("Volume", volume, 0, 1)
  imgui.InputText("Name", name, 64)
  if imgui.Button("Say hi", imgui.ImVec2(-1, 0)) then
    sampSendChat("hi from " .. require("ffi").string(name))
  end
  imgui.End()
end)

function main()
  while not isSampAvailable() do wait(100) end
  sampRegisterChatCommand("mywin", function() show[0] = not show[0] end)
  wait(-1)
end
```

Values a widget changes are `imgui.new.*` boxes: read them with `[0]`
(`show[0]`), text with `ffi.string(buf)`.

Text functions (`Text`, `TextColored`, `TextWrapped`, `TextDisabled`) are
printf-style: pass text that could contain `%` as an argument,
`imgui.Text("%s", text)`.

Sizes: multiply by `AL_DPI_SCALE` so the window looks the same on a phone
and a monitor. Fonts: `imgui.GetIO().Fonts:AddFontFromFileTTF(path, size)`
inside `OnInitialize`.

Libraries built on mimgui: `notifications` (toast messages), `fAwesome6`
(icons).

### SA-MP and the server

#### Chat and commands

```lua
sampAddChatMessage("{FF8800}Only you see this", -1)
sampSendChat("hello")            -- chat line to the server
sampSendChat("/time")            -- a server command
sampProcessChatInput("/qc")      -- as if typed: other scripts' commands first
sampRegisterChatCommand("cmd", function(arg) ... end)
```

A command you register never reaches the server.

#### Players, vehicles and objects

SA-MP ids and game handles are different numbers:

```lua
local ok, myId = sampGetPlayerIdByCharHandle(PLAYER_PED)
for id = 0, sampGetMaxPlayerId() do
  if sampIsPlayerConnected(id) then
    print(id, sampGetPlayerNickname(id), sampGetPlayerPing(id), sampGetPlayerScore(id))
    local found, ped = sampGetCharHandleBySampPlayerId(id) -- streamed in?
  end
end
```

`sampGetCarHandleBySampVehicleId`, `sampGetVehicleIdByCarHandle`,
`sampGetObjectHandleBySampId` convert vehicles and objects.

#### Dialogs

```lua
sampShowDialog(9000, "Title", "Line one\nLine two", "OK", "Close", 2) -- 2 = list
-- then poll:
local result, button, list, input = sampHasDialogRespond(9000)
```

`sampIsDialogActive`, `sampGetCurrentDialogId`, `sampGetDialogText` read the
server's dialog; `sampSendDialogResponse(id, button, listitem, input)`
answers it.

#### Server

`isSampAvailable()` is true once connected. `sampGetCurrentServerName()`,
`sampGetCurrentServerAddress()` (host, port), `sampGetPlayerCount()`.

#### RakNet

Build and send your own packets and RPCs:

```lua
local bs = raknetNewBitStream()
raknetBitStreamWriteInt32(bs, 1)
raknetSendRpc(53, bs)            -- or raknetEmulRpcReceiveBitStream to fake one from the server
raknetDeleteBitStream(bs)
```

Packets and RPCs that pass through can be read, changed or dropped in the
`onSend*` / `onReceive*` events (see Events) or through `samp.events`.
Servers can see what you send: scripts that cheat get you banned.

### Libraries and saving settings

`require` loads libraries from `lib/`. The ones that come with AL Loader:

| Library | Use |
|---|---|
| `mimgui` | Windows, buttons, inputs (see Windows and menus). |
| `samp.events` | Named handlers for every SA-MP RPC. |
| `inicfg` | Settings in `.ini` files under `config/`. |
| `jsoncfg` | Settings in `.json` files under `config/`. |
| `encoding` | Text code pages: `encoding.UTF8` / `CP1251` converters. |
| `notifications` | Small toast messages (mimgui). |
| `widgets` | Touch control ids (`WIDGET_ATTACK`, `WIDGET_SAMP_VOICE`, ...) for `isWidgetPressed` and friends. Ids of controls the game never shows are kept and simply never fire. |
| `sa_renderfix` | Makes `drawRect`, `drawSprite` and `displayText*` place things like the PC game (640x448 stretched over the screen) instead of the centred 4:3 area. |
| `fAwesome6` | Icon font for mimgui. |
| `vector3d`, `matrix3x3` | 3D maths. |
| `socket`, `socket.http`, `ltn12`, `copas` | Network: TCP/UDP, HTTP. |
| `cjson`, `encodeJson` / `decodeJson` | JSON. |
| `lfs` | Folders and file attributes. |
| `effil` | Real OS threads (data shared through tables and channels). |
| `md5`, `sha1`, `base64`, `basexx` | Hashes and encodings. |
| `inspect` | Pretty-print a table. |

#### Settings

```lua
local inicfg = require "inicfg"
local cfg = inicfg.load({ main = { enabled = true, size = 12 } }, "myscript")
cfg.main.size = 14
inicfg.save(cfg, "myscript") -- config/myscript.ini
```

```lua
local jsoncfg = require "jsoncfg"
local cfg = jsoncfg.load({ list = {} }, "myscript") -- config/myscript.json
jsoncfg.save(cfg, "myscript")
```

#### Text code pages

Servers send chat in their own code page (often Windows-1251 for Russian
servers). Convert before showing it in mimgui:

```lua
local encoding = require "encoding"
encoding.default = "CP1251"
local u8 = encoding.UTF8
imgui.Text("%s", u8(text_from_server))
```

### Bringing scripts from other loaders

Most MoonLoader and mobile Lua loader scripts run unchanged: the script
functions, events, `samp.events`, mimgui, inicfg and the RakNet functions
have the same names.

What is different, because ReSA is its own engine:

- **No memory or hooks.** `readMemory`, `writeMemory`, `getModuleHandle`,
  hooking libraries and fixed addresses do not exist. Everything goes
  through the functions in this reference. A script that pokes addresses
  needs a rewrite with them.
- **Global names.** Use `AL_VERSION`, `AL_PLATFORM`, `AL_DPI_SCALE` and
  `al_cp1251_to_utf8` / `al_utf8_to_cp1251`. A script that checks another
  loader's version global has to check `AL_VERSION` instead.
- **Folders.** Paths are under `mods/AL Loader`; use
  `getWorkingDirectory()` instead of a fixed folder name.
- **Platforms.** The same script runs on Android, iOS and PC. Check
  `AL_PLATFORM` for anything platform-specific (the `android` library only
  works on Android). On iOS the Lua JIT compiler is off, so very heavy
  loops run slower than on Android or PC.
- **Touch and keyboard.** `onTouch` works everywhere; on PC the mouse comes
  in as touch 0, and text fields take the physical keyboard.
