Search results

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