SixL client API / game/audio / GameMp
Interface: GameMp
The game functions, grouped by section: mp.game.clock.getHours(), mp.game.audio.getMusicPlaytime() ... Each section is declared in its own file; this interface only collects them.
Example
const hour = await mp.game.clock.getHours();
Properties
audio
audio: GameAudioMp
The audio functions: scenes, speech, radio stations and slow motion.
Example
mp.game.audio.getMusicPlaytime();
cam
cam: GameCamMp
The gameplay camera: its position, rotation and field of view.
Example
mp.game.cam.getGameplayCamFov();
clock
clock: GameClockMp
The game clock and calendar.
Example
mp.game.clock.getHours();
decorator
decorator: GameDecoratorMp
Decorators: named values kept on entities.
Example
mp.game.decorator.decorExistOn(vehicle.handle, 'locked');
dlc
dlc: GameDlcMp
Add-on content: the loading screen state.
Example
mp.game.dlc.getIsLoadingScreenActive();
entity
entity: GameEntityMp
Any entity: its state, position, health and appearance, and changes to them.
Example
mp.game.entity.getHealth(ped.handle);
event
event: GameEventMp
Shocking events and decision makers.
Example
mp.game.event.suppressShockingEventsNextFrame();
fire
fire: GameFireMp
Fires and explosions.
Example
mp.game.fire.getNumberOfFiresInRange(0, 0, 72, 15);
graphics
graphics: GameGraphicsMp
Graphics: particle effects, decals, timecycle modifiers, tracked points, photos and the screen.
Example
mp.game.graphics.getScreenAspectRatio();
hud
hud: GameHudMp
The heads-up display: blips, the minimap, the waypoint and the busy spinner.
Example
mp.game.hud.isWaypointActive();
interior
interior: GameInteriorMp
Interiors: their ids, memory, prop sets and rooms.
Example
mp.game.interior.getInteriorAtCoords(0, 0, 72);
itemset
itemset: GameItemsetMp
Item sets: groups of items under one handle.
Example
mp.game.itemset.createItemset(true);
localization
localization: GameLocalizationMp
The language the game is set to.
Example
mp.game.localization.getCurrentLanguage();
misc
misc: GameMiscMp
The miscellaneous functions, mp.game.misc.
Example
const wind = await mp.game.misc.getWindSpeed();
network
network: GameNetworkMp
The network functions, mp.game.network.
Example
const ms = await mp.game.network.getTime();
object
object: GameObjectMp
The object functions, mp.game.object.
Example
const exists = await mp.game.object.doesPickupExist(pickup);
pad
pad: GamePadMp
The control functions, mp.game.pad.
Example
const jumping = await mp.game.pad.isControlPressed(0, 22);
pathfind
pathfind: GamePathfindMp
The road and navigation functions, mp.game.pathfind.
Example
const onRoad = await mp.game.pathfind.isPointOnRoad(0, 0, 70);
ped
ped: GamePedMp
The ped functions, mp.game.ped.
Example
const dead = await mp.game.ped.isFatallyInjured(ped);
physics
physics: GamePhysicsMp
The physics functions, mp.game.physics.
Example
mp.game.physics.activate(object);
player
player: GamePlayerMp
The local player functions, mp.game.player.
Example
const wanted = await mp.game.player.getWantedLevel();
script
script: GameScriptMp
The script and thread functions, mp.game.script.
Example
const running = await mp.game.script.doesScriptExist('freemode');
shapetest
shapetest: GameShapetestMp
The shape test functions, mp.game.shapetest.
Example
const handle = await mp.game.shapetest.startShapeTestLosProbe(0, 0, 70, 0, 10, 70, 4);
streaming
streaming: GameStreamingMp
The streaming functions, mp.game.streaming.
Example
mp.game.streaming.requestModel('sultan');
task
task: GameTaskMp
The task functions, mp.game.task.
Example
mp.game.task.taskClearLookAt(ped);
vehicle
vehicle: GameVehicleMp
The vehicle functions, mp.game.vehicle.
Example
const engine = await mp.game.vehicle.getEngineHealth(vehicle);
water
water: GameWaterMp
The water functions, mp.game.water.
Example
const height = await mp.game.water.getWaterHeight(0, 0, 70);
weapon
weapon: GameWeaponMp
The weapon functions, mp.game.weapon.
Example
const { ammo } = await mp.game.weapon.getMaxAmmo(ped, '<weapon name>');