New pages

New pages
Hide bots | Show redirects
  • 16:56, 28 November 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025natives.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 2025OnResourceFileDownloaded (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 2025ClientLog (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 2025ClientsAndPlayers (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...")
  • 05:34, 5 September 2025ScriptingExamples/PedAttackPlayer (hist | edit) ‎[1,180 bytes]Vortrex (talk | contribs) (Created page with "For GTA III, Vice City, and San Andreas you can use natives or the GTAC functions to set a ped to consider something as a threat, and the ped will target/attack it.<br> {{JSCode|1= ped.setThreatSearch(1); // To make the ped target the player ped.heedThreats = true; // To enable attacking threats }} == Notes == * A list of ped [https://wiki.gtaconnected.com/Defines/III#GTA_III_-_Threat_Defines threat types for GTA 3]. Vice City threats aren't documented, but they're the...")
  • 08:23, 1 September 2025NetworkEvents (hist | edit) ‎[929 bytes]Vortrex (talk | contribs) (Created page with "{{DISPLAYTITLE:Network Events}} == What are Network Events? == Custom scripted events between server and client. They allow a server to tell a client something and vice verse. Useful for providing extra sync, calling functions, or simply sending data between the server and clients. == How do I use them? == Network events are universal, regardless of which side is sending and receiving (server or client). On the "sender" side, use triggerNetworkEvent|triggerNetworkEve...")
  • 08:22, 1 September 2025ScriptingExamples/PlayerSetPositionNativeMP (hist | edit) ‎[747 bytes]Vortrex (talk | contribs) (Created page with "{{DISPLAYTITLE:Set Player Position (GTA IV, Native MP Mode}} == Description == This code sets the position for a player in GTA IV NativeMultiplayer|native MP mode}}. This is necessary because in native MP mode, the server is '''not''' aware of '''ANY''' game elements, including player peds. The server will need to tell a client to set it's own player ped's position. Note: This is not necessary if you're not using native MP mode, or are running the server for another g...")