New pages
Jump to navigation
Jump to search
- 13:51, 27 November 2023 OnPlayerTriggerEventThreshold (hist | edit) [1,036 bytes] LopSided (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22311|This event is triggered when a player exceeds the maximum threshold for events via triggerServerEvent.}} ==Parameters== None ==Source== The source of this event is the player who exceeded the threshold. ===Canceling=== Canceling this event has no effect. ==Example== <syntaxhighlight lang="lua"> function start() setServerConfigSetting("player_triggered_event_inte...")
- 21:36, 26 November 2023 SCamera (hist | edit) [3,598 bytes] KhaledX (talk | contribs) (Created page with "== sCamera == '''The function creates a speed camera in-game, fines speeding vehicles, and notifies the driver and take money from player based on vehicle speed. ''' == Syntax == <syntaxhighlight lang="lua"> function sCamera(modelId, x, y, z, speed, between) </syntaxhighlight> == Parameters == * modelId: The model ID of the camera object to be created. * x, y, z: The coordinates where the camera object will be placed in the game world. * speed: The speed limit tha...")
- 14:31, 21 November 2023 Fingerprint (hist | edit) [2,786 bytes] Mtaowner (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ This function calculates a fingerprint unique to each computer. ==Syntax== <syntaxhighlight lang="lua"> void fingerprint ( function callback ) </syntaxhighlight> ===Required arguments=== *'''callback''': a callback function with syntax as described below ====Callback syntax==== <syntaxhighlight lang="lua"> function ( int value ) </syntaxhighlight> ==Code== <section name="Code" class="client" show="true"> <syntaxhighlight lang="lua"> func...")
- 16:55, 15 November 2023 SplitMultiple (hist | edit) [1,364 bytes] Arran Fortuna (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function splits a string into a table when the specified character(s) are detected.<br/> ==Syntax== <syntaxhighlight lang="lua">table splitMultiple( string str )</syntaxhighlight> ===Required Arguments=== * '''str''': The string to split. * '''chars''': The characters to detect and split the string at. ===Returns=== Returns a table containing the pieces of the split string. ==Code== <section name="S...")
- 02:43, 15 November 2023 DgsGradientSetColor (hist | edit) [912 bytes] Thisdp (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This function sets the color of the dgs gradient plugin. ==Syntax== <syntaxhighlight lang="lua"> bool dgsGradientSetColor( element gradShader, int colorFrom, int colorTo ) </syntaxhighlight> ===Required Arguments=== *'''gradShader:''' The dgs gradient you want to set. *'''colorFrom''': Gradient color 1. ( Left side when '''rotation''' is 0 ) *'''colorTo ''': Gradient color 2. ( Right side when '''rotation''' is 0 ) ===Returns=== Return...")
- 22:43, 14 November 2023 OnPlayerDetonateSatchels (hist | edit) [809 bytes] Zangomangu (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22293|This event is triggered every time satchels are detonated - either by a player or through detonateSatchels.}} ==Parameters== No parameters. ==Source== The source of this event is the player whose satchels are being detonated. ===Canceling=== If this event is canceled, the satchels will not detonate. ==Example== <syntaxhighlight lang="...")
- 22:35, 14 November 2023 OnPlayerProjectileCreation (hist | edit) [2,039 bytes] Zangomangu (talk | contribs) (Created page with "__NOTOC__ {{Server event}} {{Added feature/item|1.6.1|1.6.0|22293|This event is triggered every time a projectile is created by a player - either through a weapon, a vehicle weapon or createProjectile.}} ==Parameters== <syntaxhighlight lang="lua"> int weaponType, float x, float y, float z, float force, element target, float rotX, float rotY, float rotZ, float velX, float velY, float velZ </syntaxhighlight> *'''weaponType:''' ID, see below {{Projectiles}} *'''x:''...")
- 02:53, 10 November 2023 EngineSetModelTXDID (hist | edit) [570 bytes] TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0161|1.6.0|22190|This function changes the TXD ID of the given model ID.}} ==Syntax== <syntaxhighlight lang="lua"> bool engineSetModelTXDID( int modelID, int txdID ) </syntaxhighlight> {{OOP||Engine.setModelTXDID}} ===Required Arguments=== *'''modelID:''' The ID of the model to update TXD ID. *'''txdID:''' The ID of target TXD. Use engineRequestTXD to get a new TXD ID. ===Returns=== Returns ''true'' if this fu...")
- 11:47, 29 October 2023 GetPositionInFrontOfElement (hist | edit) [1,943 bytes] Bover. (talk | contribs) (Created page with "{{Useful Function}} This function returns position in provided distance away from element, including element's rotation<br> ==Syntax== <syntaxhighlight lang="lua">float, float, float getPositionInFrontOfElement( element theElement, float distance )</syntaxhighlight> ===Required Arguments=== * '''theElement''': The element you want to get position in front of. * '''distance''': Distance from an element you want to get position in. ===Returns=== Returns three ''floats'...")
- 20:04, 24 October 2023 DxDrawEditbox (hist | edit) [7,362 bytes] IManGaaX (talk | contribs) (add new function)
- 16:27, 21 October 2023 EngineStreamingSetProperty (hist | edit) [3,031 bytes] Dutchman101 (talk | contribs) (correct TEDERIs' mistake: moved English main page from RU/engineStreamingSetProperty to "engineStreamingSetProperty")
- 16:20, 18 October 2023 IsPedNearbyWall (hist | edit) [2,377 bytes] IManGaaX (talk | contribs) (Created page with "{{Useful Function}} __NOTOC__ <lowercasetitle></lowercasetitle> This function checks if player/ped is nearby walls like buildings or objects. ==Syntax== <syntaxhighlight lang="lua">bool isPedNearbyWall( element element[player/ped] )</syntaxhighlight> ===Required Arguments=== * '''element''': the player/ped element to check. ===Returns=== * ''true'' if the player/ped is nearby a wall. * ''false'' otherwise. ==Code== <section name="Client" class="client...")
- 12:17, 18 October 2023 AclObjectGetGroups (hist | edit) [966 bytes] Tracer (talk | contribs) (Created page with "__NOTOC__ {{Server function}} This function returns a table of all groups the object is in. ==Syntax== <syntaxhighlight lang="lua"> table aclObjectGetGroups ( string object ) </syntaxhighlight> ===Required Arguments=== * '''object:''' The name of the ACL entry to get groups of ===Returns=== Returns a table of all groups the object is in on success, false if something went wrong. ==Examples== This example outputs a list of all groups of the calling user <section...")
- 06:06, 14 October 2023 DxDrawModel3D (hist | edit) [1,670 bytes] CrosRoad95 (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|You can not use this function to draw vehicles and ped}} {{Important Note|This function doesn't obey any streaming limits, you can draw as many models as you want}} {{Important Note|You can not render model to render target.}} This function draws a 3D model - rendered for '''one''' frame. Drawn models are indistinguishable from this one created by "createObject" function. This should be used in conjunction with onClientR...")
- 03:28, 14 October 2023 DxFade (hist | edit) [3,779 bytes] LordHenry (talk | contribs) (Created page with "{{Useful Function}} <lowercasetitle></lowercasetitle> __NOTOC__ This function allows you to fade-in or fade-out any dxDraw by gradually changing its alpha value.<br> {{Note|You can fade up to 3 values at the same time, as long as they are properly declared together on the same interpolateBetween function and on the ''dxFade'' function parameters.}} {{Note|If you need to start another fade while this function is already fading something, you will need another ''dxFade...")
- 16:42, 12 October 2023 SetDiscordRichPresenceEndTime (hist | edit) [1,363 bytes] LopSided (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| This function sets the remaining time of Discord Rich Presence. }} ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceEndTime(int seconds) </syntaxhighlight> {{OOP||DiscordRPC:setEndTime}} ===Required arguments=== *'''seconds''': an integer representing the number of seconds...")
- 06:37, 12 October 2023 SetDiscordRichPresencePartySize (hist | edit) [1,406 bytes] LopSided (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{Note|For the party size to be displayed, the state must be set setDiscordRichPresenceState}} {{New feature/item|3.0161|1.6.0|22270| This function sets the party size of Discord Rich Presence. }} ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresencePartySize(int size, int max) </syntaxhighlight> {{OOP||DiscordRPC...")
- 06:35, 12 October 2023 SetDiscordRichPresenceStartTime (hist | edit) [1,234 bytes] LopSided (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{Important Note|To use this function, you must set up your own application setDiscordApplicationID}} {{New feature/item|3.0161|1.6.0|22270| This function sets the elapsed time of Discord Rich Presence. }} ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceStartTime(int seconds) </syntaxhighlight> {{OOP||DiscordRPC:setDetails}} ===Required arguments=== *'''seconds''': an integer representing the number of seconds...")
- 20:05, 10 October 2023 SetDiscordRichPresenceButton (hist | edit) [1,449 bytes] Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function sets a custom button through which we can access the website on Discord. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceButton(int index, string text, string url) </syntaxhighlight> {{OOP||DiscordRPC:setButton}} ===Required arguments=== *'''index''': a int index of the button (possible 1 and 2) *'''text''': a string with title name *'''url''': a string with url name (works only with '''https://''' or...")
- 19:58, 10 October 2023 SetDiscordRichPresenceDetails (hist | edit) [1,233 bytes] Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function sets own details text on Rich Presence. ==Syntax== <syntaxhighlight lang="lua"> bool setDiscordRichPresenceDetails(string details) </syntaxhighlight> {{OOP||DiscordRPC:setDetails}} ===Required arguments=== *'''details''': a string with details name ===Returns=== Returns ''true'' if function succeeds, ''false'' if the client has disabled synchronisation. ==Example== This example prints out if the application was succes...")