Adds a new GXT entry with the specified value.
GXT entry name or hash.
GXT entry value.
Executes the specified scaleform method on the minimap.
Removes a specified prop component from a ped.
ScriptID of the Ped.
Component id of the prop.
Copy content into users clipboard.
Returns whether the specified config flag exists.
Config flag name.
True when the config flag exists.
Emits specified event across resources.
Rest parameters for emit to send.
Emits specified event across resources.
Name of the event.
Rest parameters for emit to send.
Calls a server sided RPC with the specified arguments.
Name of the RPC
Emits specified event to server.
Name of the event.
Rest parameters for emit to send.
Emits specified event to server.
Name of the event.
Rest parameters for emit to send.
Emits specified event to server.
Name of the event.
Rest parameters for emit to send.
Evaluates and executes the given JavaScript code.
The JavaScript code.
The exports of the evaluated module.
Returns whether the game controls are currently enabled.
Returns the state of the specified ped config flag of the local player.
Config flag name.
State of the specified config flag.
Gets the current position of the cursor.
If true returns coordinates that are in the range 0 to 1. Defaults to false.
Represents the current client fps.
Gets the value of the specified GXT entry.
GXT entry name.
Gets the Base64 encoded string of the headshot with the specified ID.
ID of the headshot.
The Base64 string of the headshot image.
Gets a value using the specified key.
The key of the value to get.
Dynamic value associated with the specified key or undefined if no data is present.
Gets the current alt:V locale.
Gets the current milliseconds per game minute.
Gets the state of the specified permission.
Permission id.
Permission state.
Represents the current client ping.
Gets all the listeners that have been subscribed using onServer for the specified remote event.
Name of the event or null for generic event.
Array of listener functions for that event.
Gets the ip adress of the server where you are connected to.
The server ip.
Gets the port of the server where you are connected to.
The server port.
Gets current server time since epoch in milliseconds.
Gets a value of the specified statistic.
Name of the statistic.
Returns state of console window.
True when console window is opened.
Returns state of game window.
True when game window is focused.
Returns if alt:V is in streamer mode.
True when alt:V client is launched in streamer mode.
Determines whether the specified key is pressed.
Returns whether the specified key is toggled.
Keycode.
Returns state of user interface and console window.
True when user interface or console window is opened.
Loads a model into memory synchronously.
Hash of the model.
Loads a model into memory asynchronously.
Hash of the model.
Load a specific ytyp file.
Relative path to the game folder.
Unsubscribes from a event with the specified listener.
Name of the event.
Listener that should be removed.
Name of the RPC
Listener that should be removed (if not passed current listener will be removed).
Unsubscribes from a server event with the specified listener.
Name of the event.
Listener that should be removed.
Unsubscribes from all user-created server events with the specified listener.
Listener that should be removed.
Subscribes to a client event with the specified listener.
Name of the event.
Listener that should be added.
Subscribes to a server -> client RPC with the specified listener.
Name of the RPC
Listener to be assigned to this RPC name (there can only be one listener for each RPC name).
@example
alt.onRpc("testRpc", (...args) => {
alt.log(`server called testRpc`, args);
// throw new Error("I am an error! Notice me!");
return [1, 2, [10, 13, 19], false, "hey there"];
});
Subscribes to a server event with the specified listener.
Name of the event.
Listener that should be added.
Subscribes to a client event with the specified listener, which only triggers once.
Name of the event.
Listener that should be added.
Subscribes to a server event with the specified listener, which only triggers once.
Name of the event.
Listener that should be added.
Subscribes to all server events with the specified listener, which only triggers once.
Listener that should be added.
Removes the specified GXT entry.
GXT entry name.
Unloads the specified ipl.
Name of the ipl.
Loads the specified ipl.
Name of the ipl.
Reset minimap default component position.
Name of the minimap component.
Resets a statistic to its default value.
Name of the statistic.
Freezes the camera in place so it doesn't change position or rotation.
True to freeze the camera, false to unfreeze the camera.
Sets the specified ped config flag of the local player to the specified state.
Config flag name.
Config flag state.
Sets the current position of the cursor.
Modify minimap component position.
Name of the minimap component.
Same as alignX field in fontend.xml.
Same as alignY field in fontend.xml.
Same as posX and posY field in fontend.xml.
Same as sizeX and sizeY field in fontend.xml.
Modify minimap component position.
Name of the minimap component.
Same as alignX field in fontend.xml.
Same as alignY field in fontend.xml.
Same as posX field in fontend.xml.
Same as posY field in fontend.xml.
Same as sizeX field in fontend.xml.
Same as sizeY field in fontend.xml.
Defines if the minimap is a rectangle to change the blip clipping.
False will clip the blips rounded to the minimap.
Sets the amount of real milliseconds that have to pass every game minute.
Sets the specified dlc clothing component to a ped.
ScriptID of the Ped.
Dlc hash of the clothing.
Component id of the clothing.
Drawable id of the clothing.
Texture id of the clothing.
Palette of the clothing.
Sets the specified dlc prop component to a ped.
ScriptID of the Ped.
Dlc hash of the prop.
Component id of the prop.
Drawable id of the prop.
Texture id of the prop.
Sets the rotation velocity for the specified entity.
The script id of the entity.
The rotation velocity on the X axis.
The rotation velocity on the Y axis.
The rotation velocity on the Z axis.
Sets a statistic to desired value.
Name of the statistic.
Value of the statistic you want to set.
Change the position of the alt:V watermark.
Watermarkposition.
Sets the current weather cycle.
An array containing the weather ids for the weather cycle.
An array containing the multipliers for the weather cycle.
Sets whether the weather sync is active.
Whether the weather sync should be active.
Changes the visibility of cursor.
A boolean indicating whenever cursor should be visible or not.
The output is returned as a base64 string.
Return is dependent on the success of the operation.
The output is returned as a base64 string.
Return is dependent on the success of the operation.
Toggles the game controls.
True to enable controls, false to disable controls.
Unload a specific ytyp file.
Relative path to the game folder.
alt-client