Search results

Jump to navigation Jump to search
  • Changes a player's fighting style, most only change the 'special attack' which is done using t This example sets the player's fighting style to the desired style when he types "setstyle" followed by a
    1 KB (162 words) - 01:08, 11 September 2016
  • ...that will be presented as executer of the command to the handler function(s) of the command. ...args:''' Additional parameters that will be passed to the handler function(s) of the command that is called, separated by spaces.
    3 KB (407 words) - 14:49, 24 May 2019
  • Returns a string representing the team's name if the team object was valid, ''false'' otherwise. -- Get the player's team (source is the player who entered the command)
    1 KB (145 words) - 14:44, 13 July 2019
  • * ''height'': The height of the text, it's 1 by default. * ''distance'': The distance you will be able to view the image from, it's 20 by default.
    4 KB (593 words) - 16:18, 21 July 2023
  • { -- Using curly braces as it's a table 0, function() print("It's 0") end, -- [ compare the value, do the function ] The first argument compa
    2 KB (254 words) - 00:54, 13 May 2020
  • Modules are extensions for Multi Theft Auto's Lua core, allowing the integration and use of custom Lua functions that hav Let's start by downloading a template to create our own module.
    4 KB (625 words) - 17:06, 23 May 2023
  • This function is used to retrieve the distance between a [[element]]'s centre of mass to the base of the model. This can be used to calculate the ...reamed in, otherwise 0 is returned. If you create an element at the player's position which is going to be streamed in, call the function in the next fr
    1 KB (160 words) - 21:22, 8 December 2023
  • This function allows a gridlist's scrollbar to be forced '''on''', or returned to default. This example creates a gridlist and checks if it's created then sets the scroll bars. (TESTED!)
    1 KB (134 words) - 21:19, 7 November 2018
  • *'''dirX:''' A floating point number representing the light direction's X coordinate on the map. *'''dirY:''' A floating point number representing the light direction's Y coordinate on the map.
    2 KB (242 words) - 18:36, 15 April 2021
  • Select a player and damage its vehicle's brakes handlingSetBrakeDeceleration(vehicle, 0.08) -- reduce brake's strength
    1 KB (141 words) - 20:26, 13 July 2023
  • ...is the component's frame name (also called 'dummy') from the vehicle model's DFF file of which you want to manipulate components)
    1 KB (152 words) - 00:57, 18 July 2019
  • ...ield's value is passed as first argument and optionally more arguments. It's also possible to enable mapping of tables that are stored in the given tabl ...rgument1, ...''': All arguments that should be passed to func everytime it's called.
    2 KB (270 words) - 08:55, 29 October 2023
  • ...x, y, z and end position x, y, z of the item. Or 3 ''nil''s and 3 ''float''s if using end position of previous item as start position of current item, '
    1 KB (168 words) - 12:11, 10 January 2023
  • if ( getElementType ( theClient ) == "player" ) then -- see if it's a player (rather than an admin for example) ...if ( not isPlayerDead ( theClient ) ) then -- if the player's health is greater than 0
    1 KB (149 words) - 16:21, 13 February 2015
  • *'''x:''' A float of the 2D x position of the detect area on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the detect area on a player's screen. This is affected by the ''relative'' argument.
    2 KB (324 words) - 09:25, 17 January 2021
  • outputChatBox ( "The flag's ID is: " .. idstring ) -- output: The flag's ID is: northflag
    1 KB (177 words) - 22:07, 10 February 2024
  • float/nil getElementSpeed ( element theElement [, int/string unit="m/s" ] ) ** '''0''' or '''m/s''': метров в секунду.
    3 KB (286 words) - 10:43, 3 June 2020
  • It's hell of a lot of work to build tons of GUIs for police manuals or other boo book_id - The book's ID.
    4 KB (579 words) - 13:47, 21 January 2013
  • ...created by a script, they do not represent models that are part of the GTA's default landscape. Examples of objects include building models, roads, and * '''dimension''': The object's dimension number.
    2 KB (255 words) - 17:31, 22 May 2024
  • *'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.
    2 KB (362 words) - 05:23, 21 March 2020
View ( | ) (20 | 50 | 100 | 250 | 500)