Category:Useful Functions
From Multi Theft Auto: Wiki
The Useful Functions category contains Lua functions contributed by our community. Feel free to use them in your scripts but also to add new useful functions or optimize existing ones.
Be geared to the style of MTA's server and client functions. A good example of how a useful function page should look like you can get here. Don't forget to add the function to the Useful functions category with {{Useful Function}}! Please don't delete or modify functions of others for no reason.
By the way: The idea came from an outdated topic on the forums.
Pages in category "Useful Functions"
The following 200 pages are in this category, out of 226 total.
(previous page) (next page)C
D
- Template:DE/Nützliche Funktionen
- DE/Nützliche Funktionen
- DestroyAndCheckElement
- DxDrawAnimWindow
- DxDrawBorderedRectangle
- DxDrawBorderedText
- DxDrawDashedLine
- DxDrawGifImage
- DxDrawImage3D
- DxDrawImageOnElement
- DxDrawLinedRectangle
- DxDrawLoading
- DxDrawOctagon3D
- DxDrawOutLinedRectangle
- DxDrawPolygon
- DxDrawProgressBar
- DxDrawRectangle3D
- DxDrawRing
- DxDrawSprite
- DxDrawTextOnElement
- DxDrawTextOnRectangle
- DxDrawTriangle
- DxGetFontSizeFromHeight
- DxGetRealFontHeight
E
G
- GenerateRandomASCIIString
- GenerateString
- GetAccountFromName
- GetAge
- GetAlivePlayers (Client)
- GetAlivePlayersInTeam
- GetAllElementsStartingAt
- GetBanFromName
- GetBoundControls
- GetClipboard
- GetCurrentFPS
- GetCursorMovedOn
- GetCursorMoveOn
- GetDistance
- GetDistanceBetweenElements
- GetDistanceBetweenPointAndSegment2D
- GetEasterDate
- GetElementsInDimension
- GetElementSpeed
- GetElementsWithinMarker
- GetGridListRowIndexFromText
- GetGuestPlayers
- GetJetpackWeaponsEnabled
- GetKeyFromValueInTable
- GetLoginPlayers
- GetNearestVehicle
- GetOffsetFromXYZ
- GetOnlineAdmins
- GetPedClothesID
- GetPedEyesPosition
- GetPedMaxHealth
- GetPedMaxOxygenLevel
- GetPedWeapons
- GetPlayerAcls
- GetPlayerFromAccountName
- GetPlayerFromPartialName
- GetPlayerFromSerial
- GetPlayersByData
- GetPlayersInACLGroup
- GetPlayersInMarker
- GetPlayersInPhotograph
- GetPlayersInVehicles
- GetPointFromDistanceRotation
- GetPreviousAndNextWeapon
- GetRandomVehicle
- GetRealMonthH
- GetRealMonthM
- GetResourceScripts
- GetResourceSettings
- GetRGColorFromPercentage
- GetRowFromItemText
- GetScreenRotationFromWorldPosition
- GetServerIp
- GetShamsiMonthName
- GetTableFromSql
- GetTeamFromColor
- GetTeamWithFewestPlayers
- GetTimestamp
- GetValidVehicleModels
- Multi Theft Auto: Wiki:GetVehicleRPM
- GetVehicleRPM
- GetVehiclesCountByType
- GetVehicleTurnVelocityCenterOfMass
- GetXMLNodes
- GuiComboBoxAdjustHeight
- GuiFadeElement
- GuiGridListAddPlayers
- GuiGridListGetColumnIDFromTitle
- GuiGridListGetSelectedItemText
- GuiGridListGetSelectedText
- GuiGridListSetColumnNonSortable
- GuiGridListSetColumnsFixedWidth
- GuiLabelAddEffect
- GuiMoveElement
- GuiSetLocation
I
- IfElse
- IsCursorOnElement
- IsElementInPhotograph
- IsElementInRange
- IsElementMoving
- IsElementWithinAColShape
- IsElementWithinPickup
- IsEventHandlerAdded
- IsLeapYear
- IsMapDM
- IsMouseInCircle
- IsMouseInPosition
- IsMouseInRing
- IsMouseOnGUICloseButton
- IsPedAiming
- IsPedAimingNearPed
- IsPedDrivingVehicle
- IsPlayerInACL
- IsPlayerInTeam
- IsPlayerStaff
- IsSoundFinished
- IsTextInGridList
- IsValidMail
- IsValueInTable
- IsVehicleEmpty
- IsVehicleOccupied
- IsVehicleOnRoof
- IsVehicleReversing
- IsVehicleUpgraded
- IterElements