samp-node-lib
Version:
NodeJS library for Scripting San Andreas Multiplayer:SAMP depends on samp-node plugin
63 lines (62 loc) • 8.64 kB
TypeScript
import { SampPlayer } from "./SampPlayer";
import { BODY_PARTS, KEY } from "./SampEnum";
import { SampVehicle } from "./SampVehicle";
export declare const OnGameModeInit: (func: () => void) => void;
export declare const OnGameModeExit: (func: () => void) => void;
export declare const OnFilterScriptInit: (func: () => void) => void;
export declare const OnFilterScriptExit: (func: () => void) => void;
export declare const OnPlayerConnect: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerDisconnect: <P = Record<string, any>>(func: (player: SampPlayer<P>, reason: number) => void) => void;
export declare const OnPlayerSpawn: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerDeath: <P = Record<string, any>>(func: (player: SampPlayer<P>, killerid: SampPlayer<P>, reason: number) => void) => void;
export declare const OnVehicleSpawn: <V = Record<string, any>>(func: (vehicle: SampVehicle<V>) => void) => void;
export declare const OnVehicleDeath: <P = Record<string, any>, V = Record<string, any>>(func: (vehicle: SampVehicle<V>, killer: SampPlayer<P>) => void) => void;
export declare const OnPlayerText: <P = Record<string, any>>(func: (player: SampPlayer<P>, text: string) => void) => void;
export declare const OnPlayerCommandText: <P = Record<string, any>>(func: (player: SampPlayer<P>, cmdtext: string) => void) => void;
export declare const OnPlayerRequestClass: <P = Record<string, any>>(func: (player: SampPlayer<P>, classid: number) => void) => void;
export declare const OnPlayerEnterVehicle: <P = Record<string, any>, V = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle<V>, ispassenger: number) => void) => void;
export declare const OnPlayerExitVehicle: <P = Record<string, any>, V = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle<V>) => void) => void;
export declare const OnPlayerStateChange: <P = Record<string, any>>(func: (player: SampPlayer<P>, newstate: number, oldstate: number) => void) => void;
export declare const OnPlayerEnterCheckpoint: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerLeaveCheckpoint: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerEnterRaceCheckpoint: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerLeaveRaceCheckpoint: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnRconCommand: (func: (cmd: string) => void) => void;
export declare const OnPlayerRequestSpawn: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnObjectMoved: (func: (objectid: number) => void) => void;
export declare const OnPlayerObjectMoved: <P = Record<string, any>>(func: (player: SampPlayer<P>, objectid: number) => void) => void;
export declare const OnPlayerPickUpPickup: <P = Record<string, any>>(func: (player: SampPlayer<P>, pickupid: number) => void) => void;
export declare const OnVehicleMod: <P = Record<string, any>, V = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle<V>, componentid: number) => void) => void;
export declare const OnEnterExitModShop: <P = Record<string, any>>(func: (player: SampPlayer<P>, enterexit: number, interiorid: number) => void) => void;
export declare const OnVehiclePaintjob: <P = Record<string, any>, V = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle<V>, paintjobid: number) => void) => void;
export declare const OnVehicleRespray: <P = Record<string, any>, V = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle<V>, color1: number, color2: number) => void) => void;
export declare const OnVehicleDamageStatusUpdate: <P = Record<string, any>, V = Record<string, any>>(func: (vehicle: SampVehicle<V>, player: SampPlayer<P>) => void) => void;
export declare const OnUnoccupiedVehicleUpdate: <P = Record<string, any>, V = Record<string, any>>(func: (vehicle: SampVehicle<V>, player: SampPlayer<P>, passenger_seat: number, new_x: number, new_y: number, new_z: number, vel_x: number, vel_y: number, vel_z: number) => void) => void;
export declare const OnPlayerSelectedMenuRow: <P = Record<string, any>>(func: (player: SampPlayer<P>, row: number) => void) => void;
export declare const OnPlayerExitedMenu: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerInteriorChange: <P = Record<string, any>>(func: (player: SampPlayer<P>, newinteriorid: number, oldinteriorid: number) => void) => void;
export declare const OnPlayerKeyStateChange: <P = Record<string, any>>(func: (player: SampPlayer<P>, newkeys: KEY, oldkeys: KEY) => void) => void;
export declare const OnRconLoginAttempt: (func: (ip: string, password: string, success: number) => void) => void;
export declare const OnPlayerUpdate: <P = Record<string, any>>(func: (player: SampPlayer<P>) => void) => void;
export declare const OnPlayerStreamIn: <P = Record<string, any>>(func: (player: SampPlayer<P>, forplayer: SampPlayer<P>) => void) => void;
export declare const OnPlayerStreamOut: <P = Record<string, any>>(func: (player: SampPlayer<P>, forplayer: SampPlayer<P>) => void) => void;
export declare const OnVehicleStreamIn: <P = Record<string, any>, V = Record<string, any>>(func: (vehicle: SampVehicle<V>, forplayer: SampPlayer<P>) => void) => void;
export declare const OnVehicleStreamOut: <P = Record<string, any>, V = Record<string, any>>(func: (vehicle: SampVehicle<V>, forplayer: SampPlayer<P>) => void) => void;
export declare const OnActorStreamIn: <P = Record<string, any>>(func: (actorid: number, forplayer: SampPlayer<P>) => void) => void;
export declare const OnActorStreamOut: <P = Record<string, any>>(func: (actorid: number, forplayer: SampPlayer<P>) => void) => void;
export declare const OnDialogResponse: <P = Record<string, any>>(func: (player: SampPlayer<P>, dialogid: number, response: number, listitem: number, inputtext: string) => void) => void;
export declare const OnPlayerTakeDamage: <P = Record<string, any>>(func: (player: SampPlayer<P>, issuer: SampPlayer<P>, amount: number, weaponid: number, bodypart: BODY_PARTS) => void) => void;
export declare const OnPlayerGiveDamage: <P = Record<string, any>>(func: (player: SampPlayer<P>, damaged: SampPlayer<P>, amount: number, weaponid: number, bodypart: number) => void) => void;
export declare const OnPlayerGiveDamageActor: <P = Record<string, any>>(func: (player: SampPlayer<P>, damaged_actorid: number, amount: number, weaponid: number, bodypart: number) => void) => void;
export declare const OnPlayerClickMap: <P = Record<string, any>>(func: (player: SampPlayer<P>, fX: number, fY: number, fZ: number) => void) => void;
export declare const OnPlayerClickTextDraw: <P = Record<string, any>>(func: (player: SampPlayer<P>, clickedid: number) => void) => void;
export declare const OnPlayerClickPlayerTextDraw: <P = Record<string, any>>(func: (player: SampPlayer<P>, playertextid: number) => void) => void;
export declare const OnIncomingConnection: <P = Record<string, any>>(func: (player: SampPlayer<P>, ip_address: string, port: number) => void) => void;
export declare const OnTrailerUpdate: <P = Record<string, any>, V = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle<V>) => void) => void;
export declare const OnVehicleSirenStateChange: <P = Record<string, any>>(func: (player: SampPlayer<P>, vehicle: SampVehicle, newstate: number) => void) => void;
export declare const OnPlayerFinishedDownloading: <P = Record<string, any>>(func: (player: SampPlayer<P>, virtualworld: number) => void) => void;
export declare const OnPlayerClickPlayer: <P = Record<string, any>>(func: (player: SampPlayer<P>, clickedplayer: SampPlayer<P>, source: number) => void) => void;
export declare const OnPlayerSelectObject: <P = Record<string, any>>(func: (player: SampPlayer<P>, type: number, objectid: number, modelid: number, fX: number, fY: number, fZ: number) => void) => void;
export declare const OnPlayerWeaponShot: <P = Record<string, any>>(func: (player: SampPlayer<P>, weaponid: number, hittype: number, hitid: number, fX: number, fY: number, fZ: number) => void) => void;
export declare const OnClientCheckResponse: <P = Record<string, any>>(func: (player: SampPlayer<P>, actionid: number, memaddr: number, retndata: number) => void) => void;
export declare const OnScriptCash: <P = Record<string, any>>(func: (player: SampPlayer<P>, amount: number, source: number) => void) => void;