Search results

Jump to navigation Jump to search
  • This function is used to get the name of the current task of a certain type for a player. *'''taskType''': An integer value representing the task type (or slot) you want to get the task from. Types can be:
    2 KB (285 words) - 11:06, 26 June 2014
  • This function allows changing the type of a pickup to a Weapon, Armour or Health pickup, and allows you to set the * '''theType''': An integer representing the type of pickup. You can choose from:
    4 KB (527 words) - 08:10, 4 November 2020
  • ...PlayerPreviousAndNextWeapon, expected player at argument '1', received ".. type(player) .."."); maxId = maxId + 1;
    1 KB (113 words) - 22:20, 12 April 2021
  • ...gument @'engineGetCOLsFromLibrary' expected a string at argument 1, got "..type(file)) local colVer = file:sub(1,4)
    2 KB (228 words) - 07:50, 27 March 2021
  • * '''decrease/increase''': decrease/increase's amount (from 1 to 255). if isElement ( element ) ~= true or type ( boolean ) ~= "boolean" then return false end
    3 KB (262 words) - 15:54, 15 June 2018
  • Returns a dgs-dxeffect3d element (DGS Plugin Type)[ shader (Element Type) ] if succeed, ''false'' otherwise local img = DGS:dgsCreateImage(0,0,1,1,_,true,sp,tocolor(0,0,0,180)) --Create an image
    1 KB (167 words) - 17:29, 24 August 2020
  • ...rt(isElement(player) and getElementType(player) == "player", "Bad argument 1 @ isPlayerInTeam [player expected, got " .. tostring(player) .. "]") assert((not team) or type(team) == "string" or (isElement(team) and getElementType(team) == "team"),
    2 KB (222 words) - 12:40, 15 July 2014
  • This function returns an element of the specified type with the specified index. ...element to be returned. Examples include "player", "vehicle", or a custom type.
    1 KB (175 words) - 19:26, 29 October 2023
  • local myLabel = guiCreateLabel ( 0, 0, 1, 1, "", true ) -- retrieve the element type
    1 KB (195 words) - 17:20, 21 November 2018
  • if ( strlen($hash) == 64 + 32 + 1 ) //-- SHA256 + type + salt
    874 bytes (100 words) - 13:50, 4 October 2016
  • * 1 character representing the major version * 1 dot character
    2 KB (230 words) - 05:28, 15 July 2014
  • ** '''1''' or '''km/h''': километров в час. ...theElement), "Bad argument 1 @ getElementSpeed (element expected, got " .. type(theElement) .. ")")
    3 KB (286 words) - 10:43, 3 June 2020
  • ...mação, também é possível usar os números para a atenuação, ex.: "Linear" = 1, "InQuad" = 2, "OutQuad" = 3, ... ..."number", "Bad argument @ 'animate' [expected number at argument 1, got "..type(f).."]")
    4 KB (519 words) - 21:01, 5 August 2021
  • {{New feature/item|3.0130|1.3.0|3968| Returns a ''table'' with the siren count, siren type and a sub table for the four flags. False otherwise.
    2 KB (195 words) - 22:14, 18 December 2014
  • This function returns the nearest [[Element|element]] (of a specific type) to a [[Player|player]]. * '''type''': The type of the element you want to get. ("player", "ped", "object", etc.)
    2 KB (273 words) - 07:37, 1 November 2023
  • local myLabel = DGS:dgsCreateLabel ( 0, 0, 1, 1, "", true ) -- retrieve the element type
    2 KB (232 words) - 21:24, 3 May 2021
  • ...iangle( float x, float y, float width, float height, [int color, int width=1, bool postGUI=false ] )</syntaxhighlight> if (type(x) ~= "number") or (type(y) ~= "number") then
    2 KB (297 words) - 14:21, 6 October 2017
  • This function attaches a trailer type vehicle to a trailer-towing-type vehicle. end, 50, 1)
    945 bytes (105 words) - 15:46, 13 October 2014
  • ...the argument's name as in the argument list above, NOT the argument's data type --> local myLabel = guiCreateLabel ( 0, 0, 1, 1, "", true )
    2 KB (285 words) - 17:20, 21 November 2018
  • *'''settings: ''' A table of the settings of mask (specified by mask type). Returns a dgs-dxmask element (DGS Plugin Type)[ shader (Element Type) ] if succeed, ''false'' otherwise
    2 KB (297 words) - 08:42, 9 February 2020
  • rplight engineCreateLight ( string type ) *'''type:''' decides which type that light should have, can be '''point''', '''spot''', '''spot_soft''', ''
    3 KB (455 words) - 13:30, 14 March 2014
  • ! ID || Upgrade Type | '''1''' || Vent
    620 bytes (97 words) - 10:35, 6 November 2015
  • This example allows the player to type the command 'giveweapons', which gives the player a weapon for every slot. <syntaxhighlight lang="lua">local weaponIDs = {1,22,25,28,30,33,35,16,42,10,44,40} -- Weapon IDs
    1 KB (180 words) - 10:51, 7 August 2016
  • ...ent parent = nil, int textColor = 0x000000FF, int scaleX = 1, int scaleY = 1, element bgImage = nil, int bgColor = 0xFFFFFFFF ] ) ...f this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.
    2 KB (381 words) - 09:26, 17 January 2021
  • ...ion', 'Bad argument @ fingerprint [Expected function at argument 1, got '..type(callback)..']') local browser = createBrowser(1, 1, true, true)
    3 KB (285 words) - 14:31, 21 November 2023
  • ** '''1''' or '''km/h''': kilometres per hour (the most common speed unit, used in '''It is recommended to use MTA:SA 1.4''' or higher with this function to use [[OOP]].
    4 KB (508 words) - 10:43, 3 June 2020
  • ...gument @ 'isLastExecuteInTimer' [Expected lua-timer at argument 1, got "..(type(theTimer)).."]") return ({getTimerDetails(theTimer)})[2] == 1
    1 KB (151 words) - 11:44, 29 October 2023
  • **1: *!*user@host :You can also specify a type of 10 to 19 which correspond to masks 0 to 9, but instead of using only * w
    2 KB (329 words) - 10:57, 30 July 2009
  • This function is used to get any simple or complex [[task]] of a certain type for a ped. *'''taskType''': An integer value representing the task type (or slot) you want to get the task from. Types can be:
    3 KB (403 words) - 21:11, 2 January 2015
  • ...lled up or down. This can be either '''1''' (mouse was scrolled up) or '''-1''' (mouse was scrolled down). ...lls player in which direction wheel was scrolled (UP or DOWN) and also the type of the DGS element that wheel was scrolled on.
    1,004 bytes (140 words) - 14:18, 15 August 2018
  • ...lled up or down. This can be either '''1''' (mouse was scrolled up) or '''-1''' (mouse was scrolled down). ...lls player in which direction wheel was scrolled (UP or DOWN) and also the type of the GUI element that wheel was scrolled on.
    1,008 bytes (141 words) - 14:28, 15 August 2018
  • ...the argument's name as in the argument list above, NOT the argument's data type --> ...e. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.
    3 KB (352 words) - 18:23, 16 April 2021
  • ...Size' (Line "..actLine..") Expected 'resource' or 'resource-name', got '"..type(theResource).."'") (type(theResource) == 'string' and getResourceFromName(tostring(theResource)))
    4 KB (436 words) - 18:27, 14 November 2021
  • ** For ''userdata'': userdata(''MTA element type'') "''value''" if type(v) == "string" and k < #arg and v:sub(1,1) == "-" then
    9 KB (1,249 words) - 20:29, 23 September 2016
  • ...t @ 'getPositionInFrontOfElement' [Expected element at argument 1, got "..(type(theElement)).."]")
    2 KB (218 words) - 11:06, 21 February 2024
  • This example allows a player to type the command 'beefcake' to change his player's BODY_MUSCLE stat (#23) to the 69 = Weapon Type Pistol Skill
    3 KB (412 words) - 17:51, 20 September 2021
  • assert(type(t) == 'table', 'check argument 1 table got '..tostring(t)) assert(type(f) == 'function', 'check argument 2 function got '..tostring(f))
    3 KB (379 words) - 05:01, 13 April 2024
  • assert(getElementType(Element) == 'gui-staticimage', "Bad argument 1 @ guiSetStaticImageMovable [gui-staticimage expected, got "..getElementType ...ean", "Bad argument 2 @ guiSetStaticImageMovable [boolean expected, got "..type(state).."]")
    2 KB (292 words) - 23:47, 16 June 2020
  • *'''1: name''' -- Name of the resource, except for "Lua VM totals" which is all c *'''1: name''' This category is only used by developers.
    2 KB (350 words) - 12:42, 25 January 2024
  • ...I. Plase feel free to fix it by using another public and reliable TTS API.|1}} ...string", "Bad argument 1 @ convertTextToSpeech [ string expected, got " .. type(text) .. "]")
    6 KB (752 words) - 17:48, 8 May 2020
  • *'''effect3d: ''' A dgs-dxeffect3d element (DGS Plugin Type) local img = dgsCreateImage(0,0,1,1,_,true,sp,tocolor(0,0,0,180)) --Create an image
    1,015 bytes (120 words) - 18:08, 9 January 2020
  • Returns a dgs-dxblurbox element (DGS Plugin Type)[ shader (Element Type) ] if succeed, ''false'' otherwise DGS:dgsAttachElements(blurArea,window,0,0,1,1,true,true) --Attach Blur Box Renderer to Window
    3 KB (337 words) - 12:40, 7 May 2022
  • ...or=white, bool postGUI=false, bool absoluteAmount=false, int anglesPerLine=1] )</syntaxhighlight> ...alues from 0-360 instead of 0-1. By default it uses float values from 0 to 1.
    5 KB (715 words) - 05:35, 3 March 2023
  • *'''PrimitiveType:''' D3DPRIMITIVETYPE type --. ...only works if the original has 3 decl elements (0:D, 1:P, 1:T) and stream 1 has a stride of 20
    2 KB (169 words) - 13:25, 14 May 2017
  • if ( type ( aRow ) == "table" and #aRow == 0 ) or not aRow then return {""} end return fromJSON ( aRow [1] [ "myTable" ] )
    1 KB (146 words) - 10:20, 8 December 2020
  • ...is used to retrieve a list of all elements in a colshape, of the specified type. ...emType:''' The type of element you want a list of. This can be any element type, the common ones being:
    2 KB (299 words) - 17:10, 20 September 2021
  • ...s come from the file called: [[Chatboxpresets.xml]] but it depends on what type of preset you currently have, which is chosen from your settings in the 'In **{{Added feature/item|1.6.0|1.5.9|21160|'''chat_text_outline''' - Returns whether text black/white outlin
    3 KB (415 words) - 19:15, 12 April 2022
  • Creates an explosion of a certain type at a specified point in the world. If creator is specified, the explosion w *'''theType:''' an integer specifying the explosion type, see: [[Explosion types]]
    6 KB (763 words) - 11:44, 11 January 2024
  • This function is useful for '''for''' loops. You don't have to type ''ipairs( getElementsByType( "player" ) )'' but simply ''iterElements( "pla * '''elementType''': Type of the elements that you want to iterate through.
    1 KB (163 words) - 08:14, 29 October 2023
  • return self.file:sub(offset+1,offset+bytes) return self.cachedString:sub(readStart-cacheStart+1,readEnd-cacheStart)
    5 KB (569 words) - 04:36, 22 December 2022
  • ...f this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent. ===Element Type===
    2 KB (310 words) - 08:09, 30 October 2023
  • ...nha "..linhaAtual..") Esperado um resource ou nome de resource, obtido '"..type(theResource).."'") (type(theResource) == 'string' and getResourceFromName(tostring(theResource)))
    4 KB (454 words) - 22:08, 21 February 2021
  • *'''allowedType:''' The allowed right type. Possible values are ''general'', ''function'', ''resource'' and ''command' count = count + 1
    1 KB (193 words) - 08:36, 5 February 2021
  • 1. G2D aims to convert GUI to DGS without a lot of complex steps. *'''1) Server-sided G2D script converter (G2DSC)'''
    3 KB (386 words) - 11:12, 8 May 2022
  • In this example, if a player were to type /interior 1, they would be teleported into this interior ...did, so lets assign them to that interior and teleport them there (all in 1 function call!)
    3 KB (350 words) - 13:55, 6 August 2016
  • ...GS_ComponentSelector.png|350px|thumb|Component Selector in different color type and color attribute]] *'''colorType''': The color type. Available values are as follows:
    5 KB (573 words) - 18:27, 29 March 2022
  • *'''relative:''' A bool of whether the position of grid is ranging from 0 to 1 ( relative to the resolution of texture ) or just absolute pixels Returns a dgs-dxnineslice (DGS Plugin Type)[ dgs-dxcustomrenderer(Element Type) ] if succeed, ''false'' otherwise
    1 KB (176 words) - 17:31, 10 May 2022
  • outputDebugString("isMouseInRing: Required arguments are missing", 1); outputDebugString("isMouseInRing: Cursor is not showing!", 1); -- Remove this line if you know your cursor shouldn't always be showing.
    7 KB (995 words) - 18:06, 17 January 2018
  • '''Example 1:''' This example displays a chat message when a player enters the colshape local claymoreObject = createObject ( 1945, x, y, z - 1, 0, 0, 90 ) --create an object which looks like a claymore
    3 KB (429 words) - 09:26, 6 November 2023
  • if type(pattern) ~= 'string' then check('s', pattern) end for i=1, #pattern do
    2 KB (216 words) - 23:03, 17 July 2018
  • *'''luasource:''' type '''file''' the file content *'''compile:''' type '''value''' set to 1 to enable compilation
    7 KB (864 words) - 01:12, 8 August 2023
  • * '''type:''' A string representing the type of this field. '''Example 1:''' This example shows how to print the rows of a result set showing the fi
    2 KB (372 words) - 18:02, 5 January 2011
  • if ( isElement(list) ) and ( getElementType(list) == "gui-gridlist" ) and ( type(name) == "string" ) then local colum = tonumber(colum) or 1
    1 KB (130 words) - 09:23, 24 March 2013
  • ...er specifying how deep the table should be mapped. If depth is for example 1 table.map will map the passed table and all tables that are in that given t ...value) == "table" and depth ~= 0) then tab[key] = table.map(value, depth - 1, func, ...)
    2 KB (270 words) - 08:55, 29 October 2023
  • ...GS_ComponentSelector.png|400px|thumb|Component Selector in different color type and color attribute]] ...f this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.
    2 KB (333 words) - 07:41, 4 October 2019
  • ...ror("Bad argument @ 'guiGridListAddPlayers' [Expected gridlist at argument 1, got " .. tostring(GridList) .. "]") if (type(Section) ~= "boolean") then
    3 KB (288 words) - 22:07, 12 December 2020
  • -- Ensure the argument has got the appropiate type ...== "string", "Bad argument @ unbindControlKeys [string expected, got " .. type(control) .. "]")
    6 KB (801 words) - 13:28, 14 November 2014
  • <section name="Code 1" class="both" show="true"> assert (type (text) == "string", "Bad argument 1 @ removeHex [String expected, got "..tostring(text).."]")
    3 KB (344 words) - 05:23, 11 February 2024
  • if (type(old) == "string") and (type(new) == "string") then ...outputDebugString("Failed to rename ACL Group 'Moderator' to 'HassoN'.", 1)
    2 KB (218 words) - 10:04, 29 October 2023
  • |Breakable glass type 1: glass object changes its textures when breaking. |Breakable glass type 2: glass object doesn't change its textures when breaking.
    2 KB (323 words) - 13:07, 20 April 2023
  • if not str or type(str) ~= "string" then return false end for i=1,string.len(str) do
    1 KB (182 words) - 22:00, 11 January 2013
  • ...naged by the engine Streaming GC system. Returns '''false''' if the entity type is not being managed at all, entity does not have a visible game representa local num = 1;
    1 KB (180 words) - 08:17, 28 September 2023
  • '''Пример 1:''' Использование функции Lua [https://uopilot.uokit.co local x = str * 1
    4 KB (182 words) - 10:05, 20 April 2021
  • <data name="position" type="coord3d" default="0,0,0" /> <marker size="0.5" type="corona" color="#ffff00ff" />
    15 KB (1,945 words) - 14:37, 24 October 2018
  • '''Example 1:''' This example displays a chat message when a player enters the colshape local claymoreObject = createObject ( 1945, x, y, z - 1, 0, 0, 90 ) --create an object which looks like a claymore
    4 KB (525 words) - 17:40, 9 October 2018
  • ...of the relative radius of corner of the rounded rectangle ranges from 0 to 1 '''if relative is true''', or the radius will be absolute pixels. Returns a dgs-dxroundrectangle element (dgs Type)/ shader (element Type) if succeed, ''false'' otherwise
    4 KB (521 words) - 08:05, 1 March 2023
  • {{New feature/item|3.0152|1.5.2||This function allows the window to flash in the Windows taskbar.}} setTimer(setWindowFlashing, 1000, 1, true, 3)
    1 KB (199 words) - 18:37, 24 January 2016
  • ...f this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent. '''Example 1:''' This example creates a information window and adds two tabs to a "tabPa
    4 KB (546 words) - 08:10, 30 October 2023
  • {{New feature/item|3.0135|1.3.5|6101| *'''roomID:''' The room type which you want disable or enable the furniture in:
    905 bytes (109 words) - 14:03, 4 October 2016
  • ...t[3], "From: ".$input[1]."\n" . "Content-Type: text/html; charset=iso-8859-1\n");
    2 KB (217 words) - 10:17, 20 July 2014
  • table wordWrap( string text, float maxwidth, [float scale=1, mixed font="default", bool bColorCoded=false] ) * '''scale:''' The size of the text, as in [[dxGetTextWidth]]. Defaults to 1.
    5 KB (670 words) - 16:32, 31 May 2020
  • ...ans behave. Every action a player or pedestrian performs is a task of some type. Each player can have a number of primary and secondary tasks. Primary task *'''1:''' TASK_PRIORITY_EVENT_RESPONSE_TEMP
    2 KB (291 words) - 08:31, 19 July 2009
  • ! Explosion type !! MTA description !! Reference !! Occurrence | 1 || Molotov || CProjectileInfo::RemoveNotAdd <br> CProjectileInfo::RemovePro
    3 KB (381 words) - 14:28, 11 January 2024
  • local myLabel = guiCreateLabel ( 0, 0, 1, 1, "", true ) --retreive the element type
    3 KB (393 words) - 13:54, 5 June 2021
  • *1. Get into the folder "'''DGS/plugin/'''", and create a file named "'''myPlu ...nder this line, insert a new line "'''&lt;script src="plugin/myPlugin.lua" type="client" &gt;'''"
    6 KB (797 words) - 03:56, 9 March 2022
  • * '''icon:''' A string referring to the type of icon, acceptable values are: local newMarker = createMarker ( 0, 0, 2, "checkpoint", 1, 255, 0, 0)
    806 bytes (105 words) - 13:02, 10 October 2023
  • ...oAdd , time, int red = 255, int green = 255, int blue = 255, float scale = 1, string text, [ float x, float y, string alignX = "left", string alignY = " ...extdisplay ,number of milliseconds (the minimum is 50)(1000 milliseconds = 1 second)'''
    4 KB (602 words) - 22:58, 25 April 2013
  • if t and type(t)=="table" then -- Do checks for validity if (not isElement(v)) or (type(v) ~= "team") then
    2 KB (285 words) - 23:39, 21 June 2014
  • {{New feature/item|3.0130|1.3.0|3968| *'''sirenType:''' An integer between 1 and 6 (1: invisible, 2: single, 3+: dual)
    2 KB (227 words) - 10:54, 11 October 2021
  • * 1<small>st</small> table: <code style='color: green'> {<b>'Folder1/Folder2/fi if not (type(path) == 'string') then
    8 KB (976 words) - 19:29, 27 September 2023
  • *'''var:''' An argument of any type. Arguments that are elements will be stored as element IDs that are liable {{New feature/item|3.0150|1.5||
    2 KB (245 words) - 11:47, 4 July 2022
  • Returns type of physics-element local shape = physicsCreateShape(physics, "box", 1)
    1 KB (95 words) - 19:11, 19 February 2020
  • ...parent = nil, int textColor = 0xFFFFFFFF, float scaleX = 1, float scaleY = 1, float shadowOffsetX = nil, float shadowOffsetY = nil, int shadowColor = ni ...f this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.
    5 KB (677 words) - 12:09, 16 February 2021
  • ...the argument's name as in the argument list above, NOT the argument's data type --> ...nej. Jeśli ''true'', to wartość powinna znajdować się w przedziale od 0 do 1.
    2 KB (268 words) - 21:40, 28 July 2019
  • local myLabel = guiCreateLabel ( 0, 0, 1, 1, "", true ) --retreive the element type
    5 KB (589 words) - 10:10, 13 May 2017
  • This function attempts to read an integer (native type) from a file and return it. The amount of bytes read should be four. [[return 1+1==0;]]
    2 KB (245 words) - 03:01, 23 January 2022
  • This function attempts to read an integer (native type) from a file and return it. The amount of bytes read should be four. [[return 1+1==0;]]
    2 KB (239 words) - 23:36, 16 January 2022
  • count = count + 1 outputChatBox("Please type in a acl that you want to retrieve the rights from.",player)
    1 KB (126 words) - 07:05, 6 February 2021
  • *'''parameterType:''' A string of the parameter type you want to attach. if input == getPlayerName(player):sub(1,#input) then
    974 bytes (112 words) - 10:48, 10 March 2024
  • for i=1, #attachedFunctions do if type(timerName) ~= "string" then
    6 KB (640 words) - 19:13, 26 January 2021
View ( | ) (20 | 50 | 100 | 250 | 500)