Search results

Jump to navigation Jump to search
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (181 words) - 07:10, 6 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (179 words) - 06:36, 6 February 2021
  • int getPlayerIdleTime ( player thePlayer ) {{OOP||[[player]]:getIdleTime|idleTime|}}
    1 KB (151 words) - 11:52, 13 June 2018
  • {{note| Don't forget to give admin rights to the resource, in which you are using addBa ban addBan ( [ string IP, string Username, string Serial, player responsibleElement, string reason, int seconds = 0 ] )
    2 KB (347 words) - 17:08, 6 December 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (233 words) - 06:42, 6 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (237 words) - 10:07, 17 January 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This will allow you to retrieve the player current debug script level.
    2 KB (277 words) - 14:15, 25 October 2020
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This will set player's debug level, equivalent to [[Debugging|debugscript <level>]].
    2 KB (265 words) - 14:15, 25 October 2020
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (212 words) - 18:28, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (218 words) - 14:46, 16 December 2014
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This will allow you to retrieve the name tag a player is currently using.
    2 KB (275 words) - 05:18, 15 July 2014
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This allows you to retrieve what fighting style a player is currently using.
    2 KB (295 words) - 16:30, 13 February 2015
  • '''DP2 note:''' Don't call this on players that have not spawned. This will crash the client. string getPlayerSimplestTask ( player thePlayer )
    974 bytes (117 words) - 10:54, 26 June 2014
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (244 words) - 08:37, 5 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (237 words) - 15:18, 16 September 2014
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (298 words) - 08:35, 5 February 2021
  • This event is triggered when a player is standing on a pickup while not being in a vehicle. *'''thePickupToUse''': the [[pickup]] the [[player]] is standing on and is about to pick up.
    1 KB (173 words) - 03:02, 27 September 2018
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (240 words) - 06:35, 6 February 2021
  • {{New feature|3|1.0|This function allows you to set whether a player's nametag visibility both clientside and serverside}} Use this to define whether the player's name tag is visible or invisible.
    2 KB (211 words) - 14:12, 24 March 2016
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (338 words) - 06:47, 6 February 2021
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t bool setPlayerNametagShowing ( player thePlayer, bool showing )
    2 KB (117 words) - 14:47, 24 March 2016
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (237 words) - 07:13, 6 February 2021
  • {{note| Don't forget to give admin rights to the resource, in which you are using banPl This function will ban the specified player by either IP, [[serial]] or username
    3 KB (421 words) - 09:37, 4 June 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (306 words) - 18:25, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This function will allow you to determine if a player's name tag is currently showing.
    3 KB (416 words) - 05:17, 15 July 2014
  • {{note| Don't forget to give admin rights to the resource, in which you are using kickP This function will kick the specified player from the server.
    2 KB (220 words) - 00:17, 7 March 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...world to something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world (you
    3 KB (444 words) - 04:53, 15 July 2014
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (262 words) - 07:08, 6 February 2021
  • This event is triggered whenever a player, including those remote, dies. *'''killer''': A [[player]], [[ped]] or [[vehicle]] [[element]] representing the killer.
    1 KB (179 words) - 11:22, 27 June 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (269 words) - 19:25, 2 January 2015
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This function gets the current color of a player's name tag as RGB values. These are in the range 0-255.
    1 KB (212 words) - 00:59, 13 November 2015
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (274 words) - 18:15, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (339 words) - 23:10, 27 September 2018
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (281 words) - 18:29, 21 February 2021
  • This example will show the user who banned a player the serial of that banned player. ...cal bannedPlayer = getPlayerFromName ( bannedName ) -- Get the ID from the player who gets banned
    2 KB (200 words) - 15:34, 6 August 2016
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (241 words) - 11:41, 7 August 2019
  • ...xample will show the user who banned a player the IP adress of that banned player. ...cal bannedPlayer = getPlayerFromNick ( bannedName ) -- Get the ID from the player who gets banned
    2 KB (204 words) - 15:20, 6 August 2016
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (363 words) - 14:16, 25 October 2020
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (310 words) - 18:23, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (388 words) - 14:16, 27 April 2020
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (301 words) - 18:17, 21 February 2021
  • *If you '''don't''' want to use '''texture element''', please use ''dgsSetProperty ( yourI *'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument.
    3 KB (422 words) - 09:25, 17 January 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (337 words) - 18:28, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> int, int, int getPlayerNametagColor ( player thePlayer )
    1 KB (168 words) - 03:06, 1 April 2016
  • This function plays a frontend sound for the specified player. {{Note|These sounds don't work when [[fadeCamera]] has been used to make the screen black.}}
    2 KB (232 words) - 22:58, 18 August 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (352 words) - 18:15, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (322 words) - 08:37, 5 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (429 words) - 18:25, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> {{Note|If the player is using a hexcode in front of their name, it will override this function.
    3 KB (468 words) - 23:24, 6 July 2016
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (323 words) - 09:45, 14 October 2015
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (223 words) - 18:28, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (337 words) - 21:25, 3 May 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (311 words) - 21:07, 7 November 2018
  • ...led when the [[resource]] which contains it starts, and teleports a random player 10 units left if so.<syntaxhighlight lang="lua">local function checkOOPStat local player
    2 KB (271 words) - 10:22, 11 October 2014
  • Sets the model of a given element. This allows you to change the model of a player (or ped), a vehicle or an object. ** For players/peds: A GTASA player model (skin) ID. See [[Character Skins]].
    3 KB (359 words) - 17:36, 6 June 2022
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (334 words) - 15:50, 17 April 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> This function adds an object to the given ACL group. An object can be a player's account, specified as:
    3 KB (440 words) - 15:05, 11 June 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...e given object from the given ACL group. The object can be a resource or a player. See [[aclGroupAddObject]] for more details.
    2 KB (370 words) - 09:06, 5 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...e given object from the given ACL group. The object can be a resource or a player. See [[aclGroupAddObject]] for more details.
    2 KB (370 words) - 19:17, 29 November 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (352 words) - 08:37, 5 February 2021
  • This example lets a client (console or player) ban a serial if he has ACL rights. -- Give the player a nice error if he doesn't have rights
    1 KB (129 words) - 16:33, 13 February 2015
  • ...pe ''ipairs( getElementsByType( "player" ) )'' but simply ''iterElements( "player" )''. It's very useful if you have many for loops in your code. for _, plr in iterElements( "player" ) do
    1 KB (163 words) - 08:14, 29 October 2023
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (356 words) - 18:25, 21 February 2021
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t This creates a GUI window and allows a player to change it's alpha (the visibleness/transparency) value with a command.
    2 KB (195 words) - 17:19, 21 November 2018
  • This event is triggered when a player or ped starts to exit a vehicle. This event can be used to cancel exit, if *'''exitingPed''': a [[player]] or [[ped]] element who is starting to exit a vehicle.
    2 KB (202 words) - 18:54, 29 November 2020
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (400 words) - 18:17, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (469 words) - 18:22, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (253 words) - 18:15, 21 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (383 words) - 16:27, 13 February 2015
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t This creates a DGS window and allows a player to change it's alpha (the visibleness/transparency) value with a command.
    2 KB (225 words) - 15:14, 12 March 2023
  • This example teleports a random player to a location 5 meters in front of him local player = getRandomPlayer()
    5 KB (721 words) - 17:09, 16 February 2022
  • ...ion sets the camera rotation of a ped, e.g. where its camera will look at. Don't confuse this with [[getCameraMatrix]], because that function is designed ...is camera is looking at if it isn't fixed (i.e. camera target is the local player).
    2 KB (209 words) - 18:42, 12 February 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    3 KB (356 words) - 18:17, 21 February 2021
  • {{note| Don't forget to give admin rights to the resource, in which you are using setAc function ChangePlayerPassword(player, command, oldpass, newpass)
    2 KB (322 words) - 15:48, 12 April 2021
  • function backupResource (player,command,resourcetobackup) -- start the function ...utputChatBox ("Resource " .. resourcetobackup .. " succesfully backed up!",player,255,0,0,false) -- say it's OK!
    2 KB (194 words) - 22:51, 26 September 2016
  • ...on to a player is interrupted. See [[onPlayerNetworkStatus]] for detecting player to server interruptions. ...bug message when interruption starts and stops and also prevents the local player moving during the interruption.
    2 KB (221 words) - 00:01, 28 January 2016
  • In this example, if a player were to type /interior 1, they would be teleported into this interior --They didn't give one, so set them to the interior they wanted, but don't teleport them.
    3 KB (350 words) - 13:55, 6 August 2016
  • ...Resource pointer ( { "command", theResource } ). See examples below if you don't understand it. function(player)
    3 KB (290 words) - 09:53, 7 January 2019
  • ...er a specified time period. This will also affect the sound volume for the player (50% faded = 50% volume, full fade = no sound). For clientside scripts you bool fadeCamera ( player thePlayer, bool fadeIn, [ float timeToFade = 1.0, int red = 0, int green =
    3 KB (475 words) - 02:38, 3 February 2021
  • {{note| Don't forget to give admin rights to the resource, in which you are using remov bool removeBan ( ban theBan [, player responsibleElement = nil ] )
    1 KB (178 words) - 17:09, 6 December 2023
  • ...xample will show the user who banned a player the IP adress of that banned player. if getElementType ( bannedPlayer ) == "player" then -- اذا كان الشخص المتبند لاعب
    2 KB (130 words) - 00:24, 11 December 2012
  • This event is triggered when a player issues a command. The [[event system#Event source|source]] of this event is the [[player]] who tried to execute a command.
    3 KB (416 words) - 15:27, 31 August 2020
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t ...area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
    2 KB (286 words) - 08:06, 5 August 2021
  • ==About player sync== Player key sync is always done on demand. i.e. Player presses W, (or pushes forward on the joystick), and the sync for that is se
    2 KB (352 words) - 12:11, 19 April 2024
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (245 words) - 11:47, 4 July 2022
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (117 words) - 19:02, 12 January 2019
  • * source = player using the item ==Player Functions==
    5 KB (602 words) - 21:33, 7 April 2013
  • ...weapon nor the shots are synced between players and that normally weapons don't fire every frame. ..., 0) -- when the resource starts, create the M4 and attach it to the local player with an offset to place it above their head facing forwards
    2 KB (220 words) - 17:35, 4 May 2024
  • ...le weapons or the camera will only trigger the event if fired by the local player. {{Note|This does not trigger for any player's melee weapons or for remote player's projectile weapons or cameras}}
    4 KB (478 words) - 03:37, 25 April 2024
  • ban banPlayer ( player jugadorABanear, [ bool IP = true, bool nombre = false, bool serial = false, player responsable = nil, string razón = nil, int segundos = 0 ] )
    2 KB (336 words) - 15:47, 17 February 2011
  • ...d 1 message a second to prevent spam.", source, 255, 255, 0) -- Message to player -- The "function(source) antiSpam[source] = nil end" should clear the player from table after 1 second so he can chat again.
    2 KB (315 words) - 07:03, 12 July 2014
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t ...area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
    3 KB (285 words) - 10:20, 30 January 2022
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t for i,v in ipairs(getElementsByType("player"))do
    2 KB (336 words) - 06:27, 16 January 2023
  • <syntaxhighlight lang="lua">if hasObjectPermissionTo ( player, "resource.YourResourceName.accessPrivateArea", false ) then
    5 KB (267 words) - 07:28, 6 February 2021
  • This event is triggered when a player trips anti-cheat detections. It can be used to script a white/blacklist of ...|Any resource using this event should call [[resendPlayerACInfo]] for each player in [[onResourceStart]]}}
    4 KB (540 words) - 23:43, 10 May 2019
  • Player = 0 -- The variable to compare Player; -- Put the expression to compare in here and don't forget to end it with a semi-colon
    2 KB (254 words) - 00:54, 13 May 2020
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t
    2 KB (280 words) - 14:20, 27 April 2020
  • ...ted to a string and vice versa clientside to avoid data being lost. If you don't need this feature just delete it. * '''client''': The element of the player who should be affected.
    3 KB (334 words) - 09:37, 24 May 2012
  • ...player who typed the command, we'll ignore the second argument because we don't need it. The third argument onwards are the arguments that are passed to function pmHandler(player, cmd, target, word1, word2, word3)
    14 KB (2,137 words) - 21:20, 15 September 2018
  • bool fadeCamera ( player thePlayer, bool fadeIn, [ float timeToFade = 1.0, int red = 0, int green = {{OOP||[[player]]:fadeCamera}}
    3 KB (532 words) - 13:36, 13 August 2018
  • ...ted to a string and vice versa serverside to avoid data being lost. If you don't need this feature just delete it. This example removes the player from his team.
    3 KB (415 words) - 23:42, 4 July 2014
  • This will punish a player for throwing a teargas grenade. When he throws it he keeps getting warped t local creatorName = getPlayerName( creator ) -- We get the player name who creates the projectile
    2 KB (302 words) - 18:55, 7 September 2023
  • # You are now ready to use it! Don't forget to save! *'''hideMarkers''': Make the marker invisble (true) or don't (false).
    18 KB (2,705 words) - 01:54, 7 April 2018
  • ...a modifier. A modifier can change the behaviour of the function. Modifiers don't have to be the first argument, they always work on all arguments after it * '''u''' (unnamed): Don't use names. Every ''string'' that is not a modifier will be output as a va
    9 KB (1,249 words) - 20:29, 23 September 2016
  • This function will ban the specified player from the server by IP.|AR ban banPlayer ( player bannedPlayer, [ bool IP = true, bool Username = false, bool Serial = false,
    3 KB (182 words) - 21:03, 14 June 2021
  • ...are used by MTA and server administrators to reliably identify a PC that a player is using. Serials are 32 characters long and contain letters and numbers. ...of which for security reasons we won't mention, and situations like when a player starts using a different PC and loses their account data without ability to
    4 KB (649 words) - 10:19, 24 June 2023
  • if (getElementType(source) == "player") then outputChatBox("Player "..getPlayerName(source).." destroyed")
    3 KB (408 words) - 02:56, 27 September 2018
  • local amount = 0 -- When starting the command, we don't have any objects looped. ...x ( "You have currently " ..amount.. " objects streamed in." ) -- Send the player the amount of objects that are streamed in
    2 KB (236 words) - 19:30, 17 September 2023
  • Sets the current [[Animations|animation]] of a [[player]] or [[ped]]. Not specifying the type of animation will automatically cance *'''thePed:''' the [[player]] or [[ped]] you want to apply an [[Animations|animation]] to.
    4 KB (524 words) - 14:01, 16 December 2023
  • ...ant Note|The event is not triggered when only the dimension changes of the player. So, if you use the `matchingDimension` when teleporting players into exist {{Issue|923|Server side markers with size < 1.5 don't trigger event}}
    2 KB (228 words) - 20:40, 20 September 2023
  • The [[event system#Event source|source]] of this event is either a [[player]] element or the [[root]] element. cancelEvent() -- don't output it
    1 KB (212 words) - 14:44, 7 October 2021
  • <!-- Describe in plain english what this function does. Don't go into details, just give an overview --> ...area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
    2 KB (134 words) - 02:49, 20 September 2014
  • ...' argument is not synchronized between clients. Clients differs from local player see always standard projectile model. *'''Target''' argument valid elements are: [[player]], [[ped]], [[vehicle]] and [[object]].
    4 KB (455 words) - 11:49, 16 November 2023
  • if getElementType ( bannedPlayer ) == "player" then outputChatBox ( "ban: You don't have enough permissions", thisPlayer )
    2 KB (116 words) - 17:07, 28 September 2012
  • ***''account'': a [[Account|player account]]. ***''ban'': a [[Ban|player ban]].
    3 KB (374 words) - 17:53, 2 March 2023
  • Command which allow player to open window which near sits. outputChatBox( "You don't have window!" )
    2 KB (224 words) - 17:14, 22 October 2016
  • Keep in mind the bandwidth issues when using events - don't pass a large list of arguments unless you really need to. '''It is margin ...ng to do, limited to very specific tasks, if any). Using target element ([[player]] who should receive event, if expected to be delivered to particular one)
    6 KB (781 words) - 04:03, 19 April 2024
  • ...res to particular users. The naïve way to do this would be to check if the player who is attempting to perform an action is in a particular group (usually th ...is, somewhat confusingly named function lets you check if an ACL object (a player or a resource) has a particular ACL right. In this case, we just care about
    5 KB (776 words) - 04:22, 10 June 2023
  • Insert Sorting works possibly the fastest way If we don't know how sorted our array is. {player, vehicle, playerid, npc}
    2 KB (253 words) - 19:07, 27 September 2023
  • <div style='border: 2px solid blue;padding: 5px;'>Don't use an ipairs loop with the table returned by this function. It will skip for seat, player in pairs(getVehicleOccupants(pseudoVehicle)) do
    2 KB (277 words) - 08:24, 22 October 2019
  • ...n will have no effect on vehicles with tanks that cannot be shot in single player. -- so we don't set the state-reset timer twice when reentering a vulnerable vehicle
    2 KB (278 words) - 14:11, 13 June 2021
  • ...stance being a creation of a class - an element class, a database class, a player, a vehicle. Originally, everything was ''procedural'', you had to do things ...an instance - an object. Throughout the tutorial when I say ''object'', I don't mean [[createObject]] (unless I actually mention it), but to make things
    9 KB (1,385 words) - 05:52, 6 November 2023
  • It shows error if player isn't in vehicle or color failed to change. It shows a message if color cha return outputChatBox( "You don't have vehicle!" )
    2 KB (257 words) - 22:21, 18 December 2014
  • * Remember that 99% of the time it's a bug in your script, not an MTA bug! Don't report something to GitHub Issues until you're absolutely certain the bug ...pt will create it for everyone nearby, else people will be wondering why a player appears to be constantly floating and falling.
    8 KB (1,269 words) - 17:30, 2 August 2023
  • triggerClientEvent(getElementsWithinColShape(col, "player"), "playChatTTS", source, text) -- Tell the nearby clients to play the soun ...tion().code):sub(1, 2) -- Output the TTS in the local player language, but don't bother about variants
    6 KB (752 words) - 17:48, 8 May 2020
  • |Don't use static lighting, we want dynamic if it's possible. ...tag. Object will switch from mesh 2 to mesh 1 after getting sprayed by the player.
    2 KB (323 words) - 13:07, 20 April 2023
  • ...hings like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents t ...area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
    5 KB (426 words) - 20:58, 14 June 2021
  • **'''autoplay=1''' This will auto play the video, otherwise the player will only see the video thumbnail. This is a required code. ...ar white instead of red. There are not other colors. Only aplicable if you don't use '''controls=0''' code.
    5 KB (710 words) - 05:45, 3 March 2023
  • * Server - Core: Cazomino05: "I genuinely don't really know why we have server core." * showwepdata - shows the given player weapon data (nick)
    5 KB (671 words) - 17:37, 12 March 2020
  • ...on offset automatically. It works exactly like [[attachElements]] but you don't need to provide offset parameters. ...example attach a vehicle into another at the same position it is when the player uses the command /attach.<br>
    3 KB (358 words) - 10:45, 29 October 2023
  • *'''x:''' A float of the 2D x position of the window on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the window on a player's screen. This is affected by the ''relative'' argument.
    5 KB (673 words) - 15:14, 21 April 2021
  • *'''x:''' A float of the 2D x position of the GUI window on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI window on a player's screen. This is affected by the ''relative'' argument.
    5 KB (671 words) - 17:10, 5 December 2016
  • 34 bytes (4 words) - 21:54, 29 April 2010
  • *'''x:''' A float of the 2D x position of the GUI window on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI window on a player's screen. This is affected by the ''relative'' argument.
    5 KB (685 words) - 07:50, 30 October 2023
  • ...X'', ''maxY''. These are '''absolute''' position coordinates of where the player's map is drawn on the screen. -- If the cursor is not showing, show it, so the player can click on the desired target point
    7 KB (923 words) - 17:39, 2 July 2016
  • As Australian and German EXEs don't work reliably with MTA, this shouldn't be a huge problem. Try to obtain a Make sure you run GTA3 or Vice City at least once in single player without MTA before actually running it with MTA. If that doesn't work, try
    6 KB (1,116 words) - 18:44, 1 January 2017
  • As Australian and German EXEs don't work reliably with MTA, this shouldn't be a huge problem. Try to obtain a Make sure you run GTA3 or Vice City at least once in single player without MTA before actually running it with MTA. If that doesn't work, try
    6 KB (1,115 words) - 20:15, 26 August 2016
  • ...uts any errors you've made in the script. It speed up progress because you don't have to go into game and restart the resource to check if you fixed the s *'''Sound player''' - preview sounds by double-clicking sound file in the resource explorer:
    9 KB (1,534 words) - 17:02, 5 September 2017
  • Keep in mind the bandwidth issues when using events - don't pass a large list of arguments unless you really need to. '''It is margin ...alPlayer]] by parameter or source. Otherwise event faking (passing another player instead of the [[localPlayer]]) would be possible. For more information see
    10 KB (1,405 words) - 22:38, 29 April 2024
  • *'''clip:''' if set to ''true'', the parts of the text that don't fit within the bounding box will be cut off. ...rX, playerY, playerZ = getElementPosition ( localPlayer ) -- Get our player's coordinates.
    5 KB (692 words) - 08:15, 5 November 2023
  • if hasObjectPermissionTo ( player, "resource.YourResourceName.accessPrivateArea", false ) then ...checar se tem a permissão. Aqui pode especificar um elemento client (ex.: player), um resource ou uma string nos seguintes formatos: "user.<name>" ou "resou
    5 KB (854 words) - 20:22, 1 April 2023
  • ...n releases after DP2, you need to set the camera target (otherwise all the player will see is blue sky). ...gered, you use this variable to look which has joined. So it'll spawn that player instead of everyone or a random person.
    22 KB (3,205 words) - 05:39, 11 November 2013
  • As Australian and German EXEs don't work reliably with MTA, this shouldn't be a huge problem. Try to obtain a Make sure you run GTA3 or Vice City at least once in single player without MTA before actually running it with MTA.
    14 KB (2,400 words) - 19:57, 21 February 2022
  • if hasObjectPermissionTo ( player, "resource.YourResourceName.accessPrivateArea", false ) then outputChatBox ( "kick: You don't have permissions to use this command.", playerSource )
    5 KB (158 words) - 13:18, 7 November 2021
  • **''"local"'' - Don't synchronise. You can also parse ''false'' for this option. This example allows a player to add a custom tag onto their nickname, and also reverts it back to normal
    6 KB (874 words) - 19:10, 10 June 2023
  • ...int that was hit, if any. The two positions '''must''' be within the local player's draw distance as the collision data is not loaded outside this area, and ...rldFromScreenPosition]]. If you wish to just know if something is hit, and don't care about what or where was hit, use [[isLineOfSightClear]].
    8 KB (1,061 words) - 14:44, 27 June 2020
  • MTA forks that don't suffice to use "forks regular netc" (from bdata/netc.dll) as described in ...of providing maximum freedom and flexibility. Especially as a lot of forks don't have the best developers, not knowing why they are better off following M
    13 KB (2,256 words) - 01:44, 25 June 2023
  • We will first learn how to make a basic script that lets the player walk around in the city, step by step. ...gered, you use this variable to look which has joined. So it'll spawn that player instead of everyone or a random person.
    22 KB (3,438 words) - 17:27, 9 March 2024
  • ...his works for both custom types and built-in MTA types (like "vehicle" or "player"). [[Map manager]] exports a few more access functions which you don't have to use, but may be useful.
    8 KB (1,232 words) - 17:39, 21 August 2012
  • ...ppears when the player joins the game, and once the button is clicked, the player is spawned. The tutorial will continue the gamemode we made in [[Scripting ...le(wdwLogin, false) --hides all the GUI we made so we can show them to the player at the appropriate moment.
    16 KB (2,481 words) - 12:19, 17 September 2023
  • We don't have the https://www.mediawiki.org/wiki/Extension:Variables extension ins * Don't apply damage to peds without a game entity (See commit [https://github.co
    20 KB (2,461 words) - 14:50, 1 October 2021
  • ...his works for both custom types and built-in MTA types (like "vehicle" or "player"). [[Map manager]] exports a few more access functions which you don't have to use, but may be useful.
    9 KB (1,419 words) - 19:49, 19 April 2020
  • <player dontRespawn="false"/> <player dontRespawn="false" lastSpawnarea=""/>
    7 KB (1,039 words) - 08:12, 24 October 2022
  • The release of MTA:VC 0.3 finally offered player movement animation synchronisation. This stopped players from "floating" ar * '''Spectator''' - This mode is used to simply watch other players, you don't spawn anywhere. [[Image:800px-Spectatordm.JPG|150px|none|thumb|Spectator]
    5 KB (760 words) - 14:10, 20 June 2012
  • ...false"/> <!-- cache="false" indicates that this Lua file won't be saved on player's PC --> ...false"/> <!-- cache="false" indicates that this Lua file won't be saved on player's PC -->
    68 KB (8,381 words) - 16:29, 23 April 2024
  • ...le(wdwLogin, false) --hides all the GUI we made so we can show them to the player at the appropriate moment. ...e all GUI when the client resource starts, hide them, and show them to the player later when needed. Therefore, we'll write an event handler for "[[onClientR
    16 KB (2,457 words) - 12:11, 16 January 2022
  • ...unction we want to call and a command handler that creates the command the player will be able to enter in the console. The first argument of [[addCommandHandler]] is the name of the command the player will be able to enter, the second argument is the function this will call,
    21 KB (3,450 words) - 03:43, 10 March 2013
  • ...ver owner of this problem as it probably means their scripters & designers don't know what they are doing. More information is available at these forum li ...d server mods) cannot handle, or due to corrupt collision models. We still don't know a lot about all of the circumstances related to this crash. Our firs
    15 KB (2,541 words) - 21:09, 28 March 2024
  • The release of MTA:VC 0.3 finally offered player movement animation synchronisation. This stopped players from "floating" ar * '''Spectator''' - This mode is used to simply watch other players, you don't spawn anywhere. [[Image:800px-Spectatordm.JPG|150px|none|thumb|Spectator]
    5 KB (745 words) - 15:50, 14 July 2015
  • ...router, which is not needed if you already have all ports open, or if you don't have a router with a firewall. If so, skip this part. If you don't know how port forwarding works in your router, go to the [http://portforw
    14 KB (2,236 words) - 16:57, 23 January 2022
  • | Bad mod (custom player.img in GTA San Andreas\models). Restore player.img to original or use unmodded GTA. ...lothes) appears on your screen, on a server you're playing on. Your custom player.img cannot handle that and will cause a crash.
    11 KB (1,730 words) - 18:05, 12 May 2024
  • ...et do not provide performance enhancements over regular methods, so people don't overuse it to try to gain a performance boost. You may have noticed that if self.list[owner] then return end -- return false in case this player already owns a backpack
    14 KB (2,273 words) - 12:46, 17 August 2017
  • ...le(wdwLogin, false) --hides all the GUI we made so we can show them to the player at the appropriate moment. ...e all GUI when the client resource starts, hide them, and show them to the player later when needed. Therefore, we'll write an event handler for "[[onClientR
    15 KB (2,448 words) - 12:30, 30 June 2013
  • ...his works for both custom types and built-in MTA types (like "vehicle" or "player"). [[Map manager]] exports a few more access functions which you don't have to use, but may be useful.
    9 KB (1,550 words) - 18:13, 18 November 2018
  • ...router, which is not needed if you already have all ports open, or if you don't have a router with a firewall. If so, skip this part. If you don't know how port forwarding works in your router, go to the [https://portfor
    16 KB (2,622 words) - 01:12, 3 January 2022
  • * '''MTA crashes after the 'Stop playing with yourself' logo. Both single player and the MTA: Race ran fine before.''' ...u need to uninstall MTA:SA and GTASA, then install them in such paths that don't contain such characters.
    14 KB (2,321 words) - 21:51, 21 February 2021
  • :* '''MTA crashes after the 'Stop playing with yourself' logo. Both single player and the MTA: Race ran fine before.''' ...u need to uninstall MTA:SA and GTASA, then install them in such paths that don't contain such characters.-->
    15 KB (2,456 words) - 08:43, 7 September 2019
  • ===com.mtasa.elements.Player extends Ped=== public Player getPlayerFromName(String name);
    21 KB (2,792 words) - 20:47, 23 September 2016
  • ...reas 1.5/MTA/coreconfig.xml"<br>'''(Also remember to create a copy, if you don't want to lose your edited MTA configuration)''' Workaround: Install Windows Media Player 11<br>
    8 KB (1,221 words) - 00:00, 17 October 2023
  • As we can see, it provides several parameters: the player who called the command, the command he entered and whatever text he had aft ...we know where to spawn the vehicle (we want it to appear right beside the player)
    26 KB (2,258 words) - 00:57, 4 April 2022
  • -- don't allow people to resize the keypad ...on our keypad, there are two methods available to us for detecting when a player clicks on them.
    16 KB (2,326 words) - 12:03, 26 November 2018
  • ...k in the days when this system reigned? For fans of Grand Theft Auto, they don't just dream these what-ifs -- they bring them to life. ...ng," is also exactly one round, with very small maps and only one life per player. '''All in all, multiplayer doesn't rise to the level of something I'd reco
    20 KB (3,052 words) - 11:12, 1 May 2022
  • :No original files are modified in the process, so the single-player mode will work the same way as it did before. :* '''MTA crashes after the 'Stop playing with yourself' logo. Both single-player and the MTA ran fine before.'''
    16 KB (2,500 words) - 06:16, 10 January 2024
  • ...reas 1.6/MTA/coreconfig.xml"<br>'''(Also remember to create a copy, if you don't want to lose your edited MTA configuration)''' Workaround: Install Windows Media Player 11<br>
    10 KB (1,531 words) - 08:30, 29 June 2023
  • *For it to function, the special "Other Browsers" version of Flash Player needs to be installed from Adobe's Website ** Possible solution: Don't implement ''executeBrowserJavascript'' and introduce a "web" flag in the
    9 KB (1,512 words) - 05:15, 28 September 2023
  • * Don't allow dead peds to enter vehicles ([https://github.com/multitheftauto/mta * [admin] added save to some infos, so you don't have to reselect some options after reconnecting. (thanks to iDannz)
    28 KB (3,414 words) - 19:46, 16 June 2023
  • ...codes. If a detection is triggered and it's not disabled by the server, a player will get kicked and be shown the AC code corresponding to that detection. ' ...ble to try and create a freehaven for cheaters. You can experiment, but we don't recommend using '''disableac''' for these reasons.
    20 KB (3,156 words) - 19:38, 20 March 2022
  • * [defaultstats] Don't re-apply stats on every respawn ([https://github.com/multitheftauto/mtasa * [defaultstats] Fixed issue where defaultstats did not set player stats correctly ([https://github.com/multitheftauto/mtasa-resources/commit/
    23 KB (3,264 words) - 17:52, 4 May 2024
  • We don't have the https://www.mediawiki.org/wiki/Extension:Variables extension ins * Don't add duplicate entries to client console input history (See commit [https:
    36 KB (4,820 words) - 20:23, 29 September 2021
  • -- don't allow people to resize the keypad ...differentiate between keypads. This data will need to be set whenever the player is shown a new keypad.
    17 KB (2,724 words) - 20:58, 15 December 2018