User contributions for ChrisGame20

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽

4 December 2025

  • 00:1600:16, 4 December 2025 diff hist +772 N natives.getHashKeyCreated 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..." current
  • 00:1400:14, 4 December 2025 diff hist +683 N natives.hasModelLoadedCreated 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 =..." current
  • 00:1300:13, 4 December 2025 diff hist +524 N natives.requestModelCreated 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..." current
  • 00:1000:10, 4 December 2025 diff hist +702 N natives.isPlayerTargettingCharCreated 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..." current
  • 00:0900:09, 4 December 2025 diff hist +729 N natives.isPlayerFreeAimingAtCharCreated 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..." current
  • 00:0600:06, 4 December 2025 diff hist −78 natives.haveAnimsLoadedNo edit summary current
  • 00:0500:05, 4 December 2025 diff hist +554 N natives.requestAnimsCreated 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 |..." current
  • 00:0400:04, 4 December 2025 diff hist +711 N natives.haveAnimsLoadedCreated 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:0200:02, 4 December 2025 diff hist +786 N natives.setCharDecisionMakerCreated 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..." current
  • 00:0000:00, 4 December 2025 diff hist +820 N natives.setBlockingOfNonTemporaryEventsCreated 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..." current

3 December 2025

  • 23:5523:55, 3 December 2025 diff hist −10 natives.taskPlayAnimWithFlagsNo edit summary current
  • 23:5523:55, 3 December 2025 diff hist +923 N natives.taskPlayAnimWithFlagsCreated 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:5319:53, 3 December 2025 diff hist −19 natives.createCharNo edit summary current
  • 19:5219:52, 3 December 2025 diff hist +816 N natives.createCharCreated 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..."

2 December 2025

  • 16:0416:04, 2 December 2025 diff hist +655 N natives.changeCarColourCreated 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..." current

28 November 2025

  • 16:5616:56, 28 November 2025 diff hist +1,335 N natives.setTextDropshadowCreated 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..." current
  • 16:5316:53, 28 November 2025 diff hist +1,312 N natives.setTextEdgeCreated 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..." current
  • 16:5016:50, 28 November 2025 diff hist +940 N natives.setTextCentreCreated 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..." current
  • 16:4516:45, 28 November 2025 diff hist +990 N natives.hasScriptLoadedCreated 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..." current
  • 16:4216:42, 28 November 2025 diff hist +786 N natives.startNewScriptCreated 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..." current
  • 16:4216:42, 28 November 2025 diff hist +628 N natives.requestScriptCreated 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..." current
  • 14:3414:34, 28 November 2025 diff hist 0 N File:radar base.pngNo edit summary current
  • 14:2314:23, 28 November 2025 diff hist 0 N File:radar objective.pngNo edit summary current
  • 14:2114:21, 28 November 2025 diff hist 0 N File:radar revenge.pngNo edit summary current
  • 14:1914:19, 28 November 2025 diff hist 0 N File:radar multiplayer tutorial.pngNo edit summary current
  • 14:1414:14, 28 November 2025 diff hist 0 N File:radar destination.pngNo edit summary current
  • 14:1214:12, 28 November 2025 diff hist 0 N File:radar destination 2.pngNo edit summary current
  • 14:1114:11, 28 November 2025 diff hist 0 N File:radar destination 1.pngNo edit summary current
  • 12:1912:19, 28 November 2025 diff hist +1,066 N natives.setTextColourCreated 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..." current
  • 12:1512:15, 28 November 2025 diff hist +907 N natives.setTextFontCreated 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..." current
  • 12:1112:11, 28 November 2025 diff hist −6 natives.displayTextWithLiteralStringNo edit summary current
  • 12:1012:10, 28 November 2025 diff hist −5 natives.setTextScaleNo edit summary current
  • 12:1012:10, 28 November 2025 diff hist +1,229 N natives.setTextScaleCreated 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:5011:50, 28 November 2025 diff hist +1,340 N natives.displayTextWithLiteralStringCreated 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:4500:45, 28 November 2025 diff hist +922 N natives.requestStreamedTxdCreated 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..." current
  • 00:4400:44, 28 November 2025 diff hist +1,034 N natives.getTextureFromStreamedTxdCreated 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..." current
  • 00:3700:37, 28 November 2025 diff hist +1,586 N natives.drawSpriteCreated 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..." current
  • 00:3400:34, 28 November 2025 diff hist +869 N natives.getTextureCreated 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..." current
  • 00:3300:33, 28 November 2025 diff hist +845 N natives.loadTxdCreated 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..." current

27 November 2025

  • 02:5802:58, 27 November 2025 diff hist +581 natives.ADD SPHERENo edit summary current
  • 02:5602:56, 27 November 2025 diff hist +583 N natives.DRAW SPHERECreated 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..." current
  • 02:5602:56, 27 November 2025 diff hist −583 natives.ADD SPHEREBlanked the page Tag: Blanking

26 November 2025

  • 15:1915:19, 26 November 2025 diff hist +932 N natives.ADD EXPLOSION NO SOUNDCreated 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..." current
  • 15:1515:15, 26 November 2025 diff hist +899 N natives.ADD EXPLOSIONCreated 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..." current
  • 14:5614:56, 26 November 2025 diff hist +583 N natives.ADD SPHERECreated 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:4714:47, 26 November 2025 diff hist +1,428 N natives.DRAW CORONACreated 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..." current

24 November 2025

  • 07:4707:47, 24 November 2025 diff hist +980 N natives.drawRectCreated 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..." current