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
View (previous 100 | ) (20 | 50 | 100 | 250 | 500)