Search results

Jump to navigation Jump to search
  • 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
View ( | ) (20 | 50 | 100 | 250 | 500)