New pages
- 22:41, 7 December 2025 natives.createCheckpoint (hist | edit) [912 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawCheckpoint |parameters = float x, float y, float z, float radius, int r, int g, int b, int a |parameter1 = float x X coordinate of the checkpoint |parameter2 = float y Y coordinate of the checkpoint |parameter3 = float z Z coordinate of the checkpoint |parameter4 = float radius Radius of the checkpoint circle |parameter5 = int r Red component (0–255) |parameter6 = int g Green component (0...")
- 22:37, 7 December 2025 natives.setDisplayPlayerNameAndIcon (hist | edit) [624 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setDisplayPlayerNameAndIcon |parameters = int playerId, bool enable |parameter1 = int playerId The player index to affect |parameter2 = bool enable True to show the name and icon, false to hide |usage = Display or hide the player’s name and icon above their ped |notes = - Requires natives.displayPlayerNames to be enabled globally - Often combined with natives.givePedFakeNetworkName to...")
- 22:36, 7 December 2025 natives.displayPlayerNames (hist | edit) [479 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.displayPlayerNames |parameters = bool enable |parameter1 = bool enable True to show player names, false to hide them |usage = Toggle global display of player names |notes = - Must be enabled for natives.setDisplayPlayerNameAndIcon and natives.givePedFakeNetworkName to be visible - Acts as a global switch affecting all players |return1 = void |exampleJS = natives.displayPlayerNames(true)...")
- 22:35, 7 December 2025 natives.givePedFakeNetworkName (hist | edit) [887 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.givePedFakeNetworkName |parameters = Ped ped, string name, int r, int g, int b, int a |parameter1 = Ped ped The ped to assign the fake name to |parameter2 = string name The fake network name to display |parameter3 = int r Red component (0–255) |parameter4 = int g Green component (0–255) |parameter5 = int b Blue component (0–255) |parameter6 = int a Alpha component (0–255) |usage = Assign...")
- 00:16, 4 December 2025 natives.getHashKey (hist | edit) [772 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getHashKey |parameters = string name |parameter1 = string name The model or resource name to convert into a hash key ("M_Y_COP") |usage = Returns the hash key of a given string, typically used for models, animations, or other resources. |notes = - Commonly used before natives.requestModel to obtain the model hash - Works with ped names, vehicle names, and other resource identifiers |return1...")
- 00:14, 4 December 2025 natives.hasModelLoaded (hist | edit) [683 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.hasModelLoaded |parameters = int modelHash |parameter1 = int modelHash The model hash to check |usage = Returns whether the specified model has finished loading into memory. |notes = - Typically used after natives.requestModel to confirm readiness - Required before calling natives.createChar or spawning vehicles |return1 = bool True if the model is loaded, false otherwise |returnFail1 =...")
- 00:13, 4 December 2025 natives.requestModel (hist | edit) [524 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestModel |parameters = int modelHash |parameter1 = int modelHash The model hash to request (obtained with natives.getHashKey) |usage = Requests the specified model to be loaded into memory. |notes = - Must be called before creating a ped or vehicle with that model - Use natives.hasModelLoaded to check if the model is ready |return1 = void |returnFail1 = void |exampleJS = natives.getH...")
- 00:10, 4 December 2025 natives.isPlayerTargettingChar (hist | edit) [702 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isPlayerTargettingChar |parameters = int playerId, int ped |parameter1 = int playerId The local or network player ID |parameter2 = int ped The ped handle to check against |usage = Returns whether the specified player is hard-lock targeting the given ped. |notes = - Complements natives.isPlayerFreeAimingAtChar to cover both aim states - Typically polled inside OnDrawnHUD or OnProcess...")
- 00:09, 4 December 2025 natives.isPlayerFreeAimingAtChar (hist | edit) [729 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.isPlayerFreeAimingAtChar |parameters = int playerId, int ped |parameter1 = int playerId The local or network player ID |parameter2 = int ped The ped handle to check against |usage = Returns whether the specified player is free-aiming at the given ped (without hard lock-on). |notes = - Commonly used together with natives.isPlayerTargettingChar to cover both aim states - Typically polled insid...")
- 00:05, 4 December 2025 natives.requestAnims (hist | edit) [554 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestAnims |parameters = string animDict |parameter1 = string animDict The animation dictionary name to load (e.g. "cop") |usage = Requests the specified animation dictionary to be loaded into memory. |notes = - After requesting, use natives.haveAnimsLoaded to check if the dictionary is ready - Required before calling natives.taskPlayAnimWithFlags with animations from that dictionary |...")
- 00:04, 4 December 2025 natives.haveAnimsLoaded (hist | edit) [633 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.haveAnimsLoaded |parameters = string animDict |parameter1 = string animDict The animation dictionary name (e.g. "cop") |usage = Checks if the specified animation dictionary has been loaded into memory. |notes = - Must be called before playing an animation to ensure the dictionary is available - Often used together with natives.requestAnims to load missing dictionaries |return1 = bool True if...")
- 00:02, 4 December 2025 natives.setCharDecisionMaker (hist | edit) [786 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setCharDecisionMaker |parameters = int ped, int decisionMakerId |parameter1 = int ped The ped handle |parameter2 = int decisionMakerId The decision maker ID that defines the ped’s AI behavior |usage = Assigns a decision maker to a ped, which controls how the ped reacts to threats, combat, and ambient events. |notes = - Often combined with natives.createChar to spawn a ped - Typically used...")
- 00:00, 4 December 2025 natives.setBlockingOfNonTemporaryEvents (hist | edit) [820 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setBlockingOfNonTemporaryEvents |parameters = int ped, bool toggle |parameter1 = int ped The ped handle |parameter2 = bool toggle True to block non-temporary events, false to allow them |usage = Prevents the ped from reacting to non-temporary events such as fleeing, fighting, or ambient AI behaviors. Commonly used before forcing a ped into a scripted animation. |notes = - Often combined with n...")
- 23:55, 3 December 2025 natives.taskPlayAnimWithFlags (hist | edit) [913 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.taskPlayAnimWithFlags |parameters = int ped, string animName, string animDict, float speed, int flag, int duration |parameter1 = int ped The ped handle |parameter2 = string animName The animation name (e.g. "armsup_loop") |parameter3 = string animDict The animation dictionary (e.g. "cop") |parameter4 = float speed The playback speed (default 8.0) |parameter5 = int flag Control flag (blend/priori...")
- 19:52, 3 December 2025 natives.createChar (hist | edit) [797 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.createChar |parameters = int pedType, int modelHash, Vec3 position, bool networked |parameter1 = int pedType The ped type (see Ped Defines) |parameter2 = int modelHash The model hash |parameter3 = Vec3 position The spawn position |parameter4 = bool networked Whether the ped is networked |usage = Create a ped |return1 = Ped |returnFail1 = void |exampleJS = addC...")
- 16:04, 2 December 2025 natives.changeCarColour (hist | edit) [478 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.changeCarColour |parameters = Vehicle vehicle, int primaryColor, int secondaryColor |parameter1 = Vehicle vehicle The vehicle |parameter2 = int primaryColor The primary color index |parameter3 = int secondaryColor The secondary color index |usage = Change the primary and secondary colors of a vehicle |notes = Color indices usually range from 0 to 133 in GTA IV |return1 = void |exampleJS = addCom...")
- 16:56, 28 November 2025 natives.setTextDropshadow (hist | edit) [1,335 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextDropshadow |parameters = bool enable, int r, int g, int b, int a |parameter1 = bool enable True to enable dropshadow effect, false to disable |parameter2 = int r Red component of the shadow colour (0–255) |parameter3 = int g Green component of the shadow colour (0–255) |parameter4 = int b Blue component of the shadow colour (0–255) |parameter5 = int a Alpha component (opacity) of th...")
- 16:53, 28 November 2025 natives.setTextEdge (hist | edit) [1,312 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextEdge |parameters = bool enable, int r, int g, int b, int a |parameter1 = bool enable True to enable edge effect, false to disable |parameter2 = int r Red component of the edge colour (0–255) |parameter3 = int g Green component of the edge colour (0–255) |parameter4 = int b Blue component of the edge colour (0–255) |parameter5 = int a Alpha component (opacity) of the edge colour (0...")
- 16:50, 28 November 2025 natives.setTextCentre (hist | edit) [940 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextCentre |parameters = bool centre |parameter1 = bool centre True to center the text horizontally, false to align normally (left by default) |usage = Sets whether text drawn on the screen should be horizontally centered |notes = - Must be called before natives.displayTextWithLiteralString or similar text drawing functions - Only affects horizontal alignment; vertical alignment is contr...")
- 16:45, 28 November 2025 natives.hasScriptLoaded (hist | edit) [990 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.hasScriptLoaded |parameters = string scriptName |parameter1 = string scriptName Name of the script to check |usage = Checks if a requested script has finished loading into memory |notes = - Returns true if the script is loaded and ready to start - Must be used after natives.requestScript to confirm the script is available - Useful to avoid errors when calling natives.startNewScript |ret...")
- 16:42, 28 November 2025 natives.startNewScript (hist | edit) [786 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.startNewScript |parameters = string scriptName, int stackSize |parameter1 = string scriptName Name of the script to start |parameter2 = int stackSize Size of the stack memory to allocate (default ~1024) |usage = Starts a new script that has been requested and loaded |notes = - Must be called after natives.requestScript and natives.hasScriptLoaded return true - The stack size defines how...")
- 16:42, 28 November 2025 natives.requestScript (hist | edit) [628 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestScript |parameters = string scriptName |parameter1 = string scriptName Name of the script to request |usage = Requests a script to be loaded into memory so it can be started later |notes = - Must be called before natives.startNewScript to ensure the script is available - If the script does not exist, the request will silently fail |return1 = void |returnFail1 = void |exampleJS = bind...")
- 12:19, 28 November 2025 natives.setTextColour (hist | edit) [1,066 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextColour |parameters = int r, int g, int b, int a |parameter1 = int r Red component (0–255) |parameter2 = int g Green component (0–255) |parameter3 = int b Blue component (0–255) |parameter4 = int a Alpha component (0–255), controls opacity (0 = fully transparent, 255 = fully opaque) |usage = Sets the RGBA colour and opacity of text drawn on the screen |notes = - Must be called bef...")
- 12:15, 28 November 2025 natives.setTextFont (hist | edit) [907 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextFont |parameters = int fontId |parameter1 = int fontId Font style index (0–8 available) |usage = Sets the font style used for text drawn on the screen |notes = - Must be called before natives.displayTextWithLiteralString or similar text drawing functions - Available font IDs range from 0 to 8 - Each font ID corresponds to a different style; some may look similar depending on the ga...")
- 12:10, 28 November 2025 natives.setTextScale (hist | edit) [1,224 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.setTextScale |parameters = float xScale, float yScale |parameter1 = float xScale Horizontal scale factor for the text (0.20) |parameter2 = float yScale Vertical scale factor for the text (0.40) |usage = Sets the horizontal and vertical scale of text drawn on the screen |notes = - Set the scale in the same frame before calling natives.displayTextWithLiteralString or other text draw functions...")
- 11:50, 28 November 2025 natives.displayTextWithLiteralString (hist | edit) [1,334 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.displayTextWithLiteralString |parameters = Vec2 position, string literal, string text |parameter1 = Vec2 position Normalized screen coordinates (0.0–1.0) where the text will be drawn |parameter2 = string literal Literal type for the text, usually "STRING" |parameter3 = string text The actual text content to display |usage = Draws a text string on the screen at the specified position using a li...")
- 00:45, 28 November 2025 natives.requestStreamedTxd (hist | edit) [922 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.requestStreamedTxd |parameters = string txdName, bool persistent |parameter1 = string txdName Name of the streamed TXD (texture dictionary) to request |parameter2 = bool persistent If true, keeps the TXD loaded persistently; if false, it may be unloaded when not needed |usage = Requests a streamed TXD to be loaded into memory so its textures can be accessed |notes = - Unlike natives.loadTxd...")
- 00:44, 28 November 2025 natives.getTextureFromStreamedTxd (hist | edit) [1,034 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getTextureFromStreamedTxd |parameters = string txdName, string textureName |parameter1 = string txdName Name of the streamed TXD previously requested |parameter2 = string textureName Name of the texture inside the streamed TXD |usage = Retrieves a texture handle from a streamed TXD by name |notes = - Requires that the TXD has been requested with natives.requestStreamedTxd - Allows accessing...")
- 00:37, 28 November 2025 natives.drawSprite (hist | edit) [1,586 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawSprite |parameters = int texture, float x, float y, float width, float height, float rotation, int r, int g, int b, int a |parameter1 = int texture Handle of the texture obtained with natives.getTexture |parameter2 = float x Normalized X coordinate (0.0–1.0) for the sprite’s center |parameter3 = float y Normalized Y coordinate (0.0–1.0) for the sprite’s center |parameter4 = float...")
- 00:34, 28 November 2025 natives.getTexture (hist | edit) [869 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.getTexture |parameters = int txdId, string textureName |parameter1 = int txdId Handle ID of a previously loaded TXD |parameter2 = string textureName Name of the texture inside the TXD |usage = Retrieves a texture handle from a loaded TXD by name |notes = The TXD must be loaded first using natives.loadTxd; the returned texture can be drawn with natives.drawSprite |return1 = object Texture...")
- 00:33, 28 November 2025 natives.loadTxd (hist | edit) [845 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.loadTxd |parameters = string txdName |parameter1 = string txdName Name of the TXD (texture dictionary) to load |usage = Loads a texture dictionary (TXD) into memory so its textures can be accessed |notes = - Must be called before using natives.getTexture or natives.drawSprite with textures from that TXD - This native can only load texture dictionaries that exist inside the **game’s te...")
- 02:56, 27 November 2025 natives.DRAW SPHERE (hist | edit) [583 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.DRAW_SPHERE |parameters = Vec3 position, float radius |parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z) |parameter2 = float radius Sphere radius/size |usage = Draw a solid sphere at a specific world position in Vice City |notes = The sphere is rendered in a default pink color and does not accept custom RGB values. |return1 = void |returnFail1 = void |exampleJS = a...")
- 15:19, 26 November 2025 natives.ADD EXPLOSION NO SOUND (hist | edit) [932 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.ADD_EXPLOSION_NO_SOUND |parameters = Vec3 position, int type |parameter1 = Vec3 position World coordinates where the explosion occurs (x, y, z) |parameter2 = int type Explosion type (0–11) |usage = Create an explosion at a specific world position in Vice City without sound |notes = Explosion type determines the visual and physical effect. This variant suppresses the explosion sound effect. |re...")
- 15:15, 26 November 2025 natives.ADD EXPLOSION (hist | edit) [899 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.ADD_EXPLOSION |parameters = Vec3 position, int type |parameter1 = Vec3 position World coordinates where the explosion occurs (x, y, z) |parameter2 = int type Explosion type (0–11) |usage = Create an explosion at a specific world position in Vice City |notes = Explosion type determines the visual and physical effect. Use carefully as explosions affect gameplay and nearby entities. |return1 = vo...")
- 14:56, 26 November 2025 natives.ADD SPHERE (hist | edit) [581 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.DRAW_SPHERE |parameters = Vec3 position, float radius |parameter1 = Vec3 position World coordinates where the sphere is drawn (x, y, z) |parameter2 = float radius Sphere radius/size |usage = Draw a solid sphere at a specific world position in Vice City |notes = The sphere is rendered in a default pink color and does not accept custom RGB values. |return1 = void |returnFail1 = void |exampleJS = a...")
- 14:47, 26 November 2025 natives.DRAW CORONA (hist | edit) [1,428 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = vc |type = function |name = natives.DRAW_CORONA |parameters = Vec3 position, float radius, int type, int flare, int r, int g, int a |parameter1 = Vec3 position World coordinates where the corona is drawn (x, y, z) |parameter2 = float radius Corona radius/size (1.0 , 1.5 , 2.0) |parameter3 = int type Corona style (available 0–8) |parameter4 = int flare Lensflare option (0 = none, 1 = yellow, 2 = white) |parameter5 = int r Red co...")
- 07:47, 24 November 2025 natives.drawRect (hist | edit) [980 bytes] ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.drawRect |parameters = Vec2 position, Vec2 size, int r, int g, int b, int a |parameter1 = Vec2 position Normalized screen coordinates (0.0–1.0) for the rectangle’s center |parameter2 = Vec2 size Rectangle size relative to screen (width, height) |parameter3 = int r Red color value (0–255) |parameter4 = int g Green color value (0–255) |parameter5 = int b Blue color value (0–255) |paramet...")
- 19:32, 12 November 2025 natives.areTaxiLightsOn (hist | edit) [527 bytes] Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |type = function |name = natives.areTaxiLightsOn |parameters = vehicle Vehicle |parameter1 = vehicle Vehicle The vehicle |usage = turn the taxi light on/off for a vehicle |notes = Use natives.setTaxiLights to turn on and off the taxi light |return1 = bool |returnFail1 = void |exampleJS = addCommandHandler("taxilight", function(command, params, client) { natives.setTaxiLights(localPlayer.vehicle, !natives.areTa...")
- 19:31, 12 November 2025 natives.setTaxiLights (hist | edit) [625 bytes] Vortrex (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |type = function |name = natives.setTaxiLights |parameters = vehicle Vehicle, bool Enabled |parameter1 = bool enabled The vehicle |parameter2 = bool enabled Whether the taxi light should be on or off |usage = turn the taxi light on/off for a vehicle |notes = Use natives.areTaxiLightsOn to get whether the taxi light is currently on |return1 = void |returnFail1 = void |exampleJS = addCommandHandler("taxilight", fu...")
- 16:56, 9 November 2025 OnResourceFileDownloaded (hist | edit) [694 bytes] Vortrex (talk | contribs) (Created page with "{{ScriptItem2 |name = OnResourceFileDownloaded |side = client |type = event |games = iii vc sa iv |desc = a resource file is downloaded |arg1 = Resource resource The resource which the file downloaded for. |arg2 = String filePath The file path of the file, relative to the resource's folder |arg3 = bool downloaded Whether or not the file was downloaded. If false, the file was grabbed from the cache because it already matched the server's file. |cancel = false |exampleJS =...")
- 15:12, 9 November 2025 ClientLog (hist | edit) [558 bytes] Vortrex (talk | contribs) (Created page with "{{DISPLAYTITLE:Client Log}} == What is it? == The client log is a simple text file containing all output to the client console for a single game session. A new log is created every time the game starts. == Where do I find it? == Open GTAC launcher. Click "Tools" at the bottom right, then choose "Logs". A folder window will appear. Go into the folder named "Game".<br /> If you just had a problem in-game, you'll probably need the newest log file. Sorting by the "date mod...")
- 03:14, 19 October 2025 ClientsAndPlayers (hist | edit) [629 bytes] Vortrex (talk | contribs) (Created page with "{{DISPLAYTITLE:Clients and Players}} == What's the difference? == The easiest way to remember it, is the client doesn't exist in the game world. It can't have a position or anything "physical". The player ped ''does'' exist in the game world, which is why it has position and stuff. == Notes == * A client also known as a "net machine". It's just an entity that's connected to the server. In scripting, client.player is the ped attached to the client. * You can have a...")