<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ka1888868</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ka1888868"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Ka1888868"/>
	<updated>2026-04-28T22:59:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OOP_client&amp;diff=52676</id>
		<title>OOP client</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OOP_client&amp;diff=52676"/>
		<updated>2017-10-28T13:15:42Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* GuiGridList */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs Checking|This page is partially outdated.}}&lt;br /&gt;
The new OOP in MTA allows for better code organization and readability. This is a list of [[Client_Scripting_Functions|client-side functions]].&lt;br /&gt;
&lt;br /&gt;
''See also: [[OOP]]''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Element==&lt;br /&gt;
 &lt;br /&gt;
 areCollisionsEnabled (function: [[getElementCollisionsEnabled]])&lt;br /&gt;
 attach (function: [[attachElements]])&lt;br /&gt;
 clearVisibleTo (function: [[clearElementVisibleTo]])&lt;br /&gt;
 clone (function: [[cloneElement]])&lt;br /&gt;
 create (function: [[createElement]])&lt;br /&gt;
 destroy (function: [[destroyElement]])&lt;br /&gt;
 detach (function: [[detachElements]])&lt;br /&gt;
 getAllByType (function: [[getElementsByType]])&lt;br /&gt;
 getAlpha (function: [[getElementAlpha]])&lt;br /&gt;
 getAttachedElements (function: [[getAttachedElements]])&lt;br /&gt;
 getAttachedOffsets (function: [[getElementAttachedOffsets]])&lt;br /&gt;
 getAttachedTo (function: [[getElementAttachedTo]])&lt;br /&gt;
 getBoundingBox (function: [[getElementBoundingBox]])&lt;br /&gt;
 getByID (function: [[getElementByID]])&lt;br /&gt;
 getByType (function: [[getElementsByType]])&lt;br /&gt;
 getChild (function: [[getElementChild]])&lt;br /&gt;
 getChildren (function: [[getElementChildren]])&lt;br /&gt;
 getChildrenCount (function: [[getElementChildrenCount]])&lt;br /&gt;
 getColShape (function: [[getElementColShape]])&lt;br /&gt;
 getData (function: [[getElementData]])&lt;br /&gt;
 getDimension (function: [[getElementDimension]])&lt;br /&gt;
 getDistanceFromCentreOfMassToBaseOfModel (function: [[GetElementDistanceFromCentreOfMassToBaseOfModel]])&lt;br /&gt;
 getHealth (function: [[getElementHealth]])&lt;br /&gt;
 getID (function: [[getElementID]])&lt;br /&gt;
 getInterior (function: [[getElementInterior]])&lt;br /&gt;
 getLowLOD (function: [[getLowLODElement]])&lt;br /&gt;
 getModel (function: [[getElementModel]])&lt;br /&gt;
 getParent (function: [[getElementParent]])&lt;br /&gt;
 getSyncer (function: [[getElementSyncer]])&lt;br /&gt;
 getType (function: [[getElementType]])&lt;br /&gt;
 getVelocity (function: [[getElementVelocity]])&lt;br /&gt;
 getWithinColShape (function: [[getElementsWithinColShape]])&lt;br /&gt;
 getZoneName (function: [[getElementZoneName]])&lt;br /&gt;
 isAttached (function: [[isElementAttached]])&lt;br /&gt;
 isCallPropagationEnabled (function: [[isElementCallPropagationEnabled]])&lt;br /&gt;
 isDoubleSided (function: [[isElementDoubleSided]])&lt;br /&gt;
 isFrozen (function: [[isElementFrozen]])&lt;br /&gt;
 isInWater (function: [[isElementInWater]])&lt;br /&gt;
 isLowLOD (function: [[isElementLowLOD]])&lt;br /&gt;
 isVisibleTo (function: [[isElementVisibleTo]])&lt;br /&gt;
 isWithinColShape (function: [[isElementWithinColShape]])&lt;br /&gt;
 isWithinMarker (function: [[isElementWithinMarker]])&lt;br /&gt;
 removeData (function: [[removeElementData]])&lt;br /&gt;
 setAlpha (function: [[setElementAlpha]])&lt;br /&gt;
 setAttachedOffsets (function: [[setElementAttachedOffsets]])&lt;br /&gt;
 setCallPropagationEnabled (function: [[setElementCallPropagationEnabled]])&lt;br /&gt;
 setCollisionsEnabled (function: [[setElementCollisionsEnabled]])&lt;br /&gt;
 setData (function: [[setElementData]])&lt;br /&gt;
 setDimension (function: [[setElementDimension]])&lt;br /&gt;
 setDoubleSided (function: [[setElementDoubleSided]])&lt;br /&gt;
 setFrozen (function: [[setElementFrozen]])&lt;br /&gt;
 setHealth (function: [[setElementHealth]])&lt;br /&gt;
 setID (function: [[setElementID]])&lt;br /&gt;
 setInterior (function: [[setElementInterior]])&lt;br /&gt;
 setLowLOD (function: [[setLowLODElement]])&lt;br /&gt;
 setMatrix (function: [[setElementMatrix]])&lt;br /&gt;
 setModel (function: [[setElementModel]])&lt;br /&gt;
 setParent (function: [[setElementParent]])&lt;br /&gt;
 setPosition (function: [[setElementPosition]])&lt;br /&gt;
 setVelocity (function: [[setElementVelocity]])&lt;br /&gt;
 setVisibleTo (function: [[setElementVisibleTo]])&lt;br /&gt;
&lt;br /&gt;
==Vehicle==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 addUpgrade (function: [[addVehicleUpgrade]])&lt;br /&gt;
 attachTrailer (function: [[attachTrailerToVehicle]])&lt;br /&gt;
 blow (function: [[blowVehicle]])&lt;br /&gt;
 create (function: [[createVehicle]])&lt;br /&gt;
 detachTrailer (function: [[detachTrailerFromVehicle]])&lt;br /&gt;
 fix (function: [[fixVehicle]])&lt;br /&gt;
 getAdjustableProperty (function: [[getVehicleAdjustableProperty]])&lt;br /&gt;
 getColor (function: [[getVehicleColor]])&lt;br /&gt;
 getCompatibleUpgrades (function: [[getVehicleCompatibleUpgrades]])&lt;br /&gt;
 getComponentPosition (function: [[getVehicleComponentPosition]])&lt;br /&gt;
 getComponentRotation (function: [[getVehicleComponentRotation]])&lt;br /&gt;
 getComponents (function: [[getVehicleComponents]])&lt;br /&gt;
 getComponentVisible (function: [[getVehicleComponentVisible]])&lt;br /&gt;
 getController (function: [[getVehicleController]])&lt;br /&gt;
 getDoorOpenRatio (function: [[getVehicleDoorOpenRatio]])&lt;br /&gt;
 getDoorState (function: [[getVehicleDoorState]])&lt;br /&gt;
 getEngineState (function: [[getVehicleEngineState]])&lt;br /&gt;
 getGear (function: [[getVehicleCurrentGear]])&lt;br /&gt;
 getGravity (function: [[getVehicleGravity]])&lt;br /&gt;
 getHandling (function: [[getVehicleHandling]])&lt;br /&gt;
 getHeadLightColor (function: [[getVehicleHeadLightColor]])&lt;br /&gt;
 getHelicopterRotorSpeed (function: [[getHelicopterRotorSpeed]])&lt;br /&gt;
 getLandingGearDown (function: [[getVehicleLandingGearDown]])&lt;br /&gt;
 getLightState (function: [[getVehicleLightState]])&lt;br /&gt;
 getMaxPassengers (function: [[getVehicleMaxPassengers]])&lt;br /&gt;
 getName (function: [[getVehicleName]])&lt;br /&gt;
 getNitroCount (function: [[getVehicleNitroCount]])&lt;br /&gt;
 getNitroLevel (function: [[getVehicleNitroLevel]])&lt;br /&gt;
 getOccupant (function: [[getVehicleOccupant]])&lt;br /&gt;
 getOccupants (function: [[getVehicleOccupants]])&lt;br /&gt;
 getOverrideLights (function: [[getVehicleOverrideLights]])&lt;br /&gt;
 getPaintjob (function: [[getVehiclePaintjob]])&lt;br /&gt;
 getPanelState (function: [[getVehiclePanelState]])&lt;br /&gt;
 getPlateText (function: [[getVehiclePlateText]])&lt;br /&gt;
 getSirens (function: [[getVehicleSirens]])&lt;br /&gt;
 getSirensOn (function: [[getVehicleSirensOn]])&lt;br /&gt;
 getTowedByVehicle (function: [[getVehicleTowedByVehicle]])&lt;br /&gt;
 getTowingVehicle (function: [[getVehicleTowingVehicle]])&lt;br /&gt;
 getTrainDirection (function: [[getTrainDirection]])&lt;br /&gt;
 getTrainSpeed (function: [[getTrainSpeed]])&lt;br /&gt;
 getTurnVelocity (function: [[getVehicleTurnVelocity]])&lt;br /&gt;
 getTurretPosition (function: [[getVehicleTurretPosition]])&lt;br /&gt;
 getUpgrades (function: [[getVehicleUpgrades]])&lt;br /&gt;
 getUpgradeSlotName (function: [[getVehicleUpgradeSlotName]])&lt;br /&gt;
 getVariant (function: [[getVehicleVariant]])&lt;br /&gt;
 getVehicleType (function: [[getVehicleType]])&lt;br /&gt;
 getWheelStates (function: [[getVehicleWheelStates]])&lt;br /&gt;
 isBlown (function: [[isVehicleBlown]])&lt;br /&gt;
 isDamageProof (function: [[isVehicleDamageProof]])&lt;br /&gt;
 isFuelTankExplodable (function: [[isVehicleFuelTankExplodable]])&lt;br /&gt;
 isLocked (function: [[isVehicleLocked]])&lt;br /&gt;
 isNitroActivated (function: [[isVehicleNitroActivated]])&lt;br /&gt;
 isNitroRecharging (function: [[isVehicleNitroRecharging]])&lt;br /&gt;
 isOnGround (function: [[isVehicleOnGround]])&lt;br /&gt;
 isTaxiLightOn (function: [[isVehicleTaxiLightOn]])&lt;br /&gt;
 isTrainDerailable (function: [[setTrainDerailable]])&lt;br /&gt;
 isTrainDerailed (function: [[isTrainDerailed]])&lt;br /&gt;
 removeUpgrade (function: [[removeVehicleUpgrade]])&lt;br /&gt;
 resetComponentPosition (function: [[resetVehicleComponentPosition]])&lt;br /&gt;
 resetComponentRotation (function: [[resetVehicleComponentRotation]])&lt;br /&gt;
 setAdjustableProperty (function: [[setVehicleAdjustableProperty]])&lt;br /&gt;
 setColor (function: [[setVehicleColor]])&lt;br /&gt;
 setComponentPosition (function: [[setVehicleComponentPosition]])&lt;br /&gt;
 setComponentRotation (function: [[setVehicleComponentRotation]])&lt;br /&gt;
 setComponentVisible (function: [[setVehicleComponentVisible]])&lt;br /&gt;
 setDamageProof (function: [[setVehicleDamageProof]])&lt;br /&gt;
 setDirtLevel (function: [[setVehicleDirtLevel]])&lt;br /&gt;
 setDoorOpenRatio (function: [[setVehicleDoorOpenRatio]])&lt;br /&gt;
 setDoorState (function: [[setVehicleDoorState]])&lt;br /&gt;
 setDoorsUndamageable (function: [[setVehicleDoorsUndamageable]])&lt;br /&gt;
 setEngineState (function: [[setVehicleEngineState]])&lt;br /&gt;
 setFuelTankExplodable (function: [[setVehicleFuelTankExplodable]])&lt;br /&gt;
 setGravity (function: [[setVehicleGravity]])&lt;br /&gt;
 setHeadLightColor (function: [[setVehicleHeadLightColor]])&lt;br /&gt;
 setHelicopterRotorSpeed (function: [[setHelicopterRotorSpeed]])&lt;br /&gt;
 setLandingGearDown (function: [[setVehicleLandingGearDown]])&lt;br /&gt;
 setLightState (function: [[setVehicleLightState]])&lt;br /&gt;
 setLocked (function: [[setVehicleLocked]])&lt;br /&gt;
 setNitroActivated (function: [[setVehicleNitroActivated]])&lt;br /&gt;
 setNitroCount (function: [[setVehicleNitroCount]])&lt;br /&gt;
 setNitroLevel (function: [[setVehicleNitroLevel]])&lt;br /&gt;
 setOverrideLights (function: [[setVehicleOverrideLights]])&lt;br /&gt;
 setPaintjob (function: [[setVehiclePaintjob]])&lt;br /&gt;
 setPanelState (function: [[setVehiclePanelState]])&lt;br /&gt;
 setSirens (function: [[setVehicleSirens]])&lt;br /&gt;
 setSirensOn (function: [[setVehicleSirensOn]])&lt;br /&gt;
 setTaxiLightOn (function: [[setVehicleTaxiLightOn]])&lt;br /&gt;
 setTrainDerailable (function: [[setTrainDerailable]])&lt;br /&gt;
 setTrainDerailed (function: [[setTrainDerailed]])&lt;br /&gt;
 setTrainDirection (function: [[setTrainDirection]])&lt;br /&gt;
 setTrainSpeed (function: [[setTrainSpeed]])&lt;br /&gt;
 setTurnVelocity (function: [[setVehicleTurnVelocity]])&lt;br /&gt;
 setTurretPosition (function: [[setVehicleTurretPosition]])&lt;br /&gt;
 setVariant (function: [[setVehicleVariant]])&lt;br /&gt;
 setWheelStates (function: [[setVehicleWheelStates]])&lt;br /&gt;
&lt;br /&gt;
==Ped==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 addClothes (function: [[addPedClothes]])&lt;br /&gt;
 canBeKnockedOffBike (function: [[canPedBeKnockedOffBike]])&lt;br /&gt;
 create (function: [[createPed]])&lt;br /&gt;
 doesHaveJetPack (function: [[doesPedHaveJetPack]])&lt;br /&gt;
 getAmmoInClip (function: [[getPedAmmoInClip]])&lt;br /&gt;
 getAnalogControlState (function: [[getPedAnalogControlState]])&lt;br /&gt;
 getAnimation (function: [[getPedAnimation]])&lt;br /&gt;
 getAnimationData (function: [[getPedAnimationData]])&lt;br /&gt;
 getArmor (function: [[getPedArmor]])&lt;br /&gt;
 getBodyPartName (function: [[getBodyPartName]])&lt;br /&gt;
 getBonePosition (function: [[getPedBonePosition]])&lt;br /&gt;
 getCameraRotation (function: [[getPedCameraRotation]])&lt;br /&gt;
 getClothes (function: [[getPedClothes]])&lt;br /&gt;
 getClothesByTypeIndex (function: [[getClothesByTypeIndex]])&lt;br /&gt;
 getClothesTypeName (function: [[getClothesTypeName]])&lt;br /&gt;
 getContactElement (function: [[getPedContactElement]])&lt;br /&gt;
 getControlState (function: [[getPedControlState]])&lt;br /&gt;
 getMoveState (function: [[getPedMoveState]])&lt;br /&gt;
 getOccupiedVehicle (function: [[GetPedOccupiedVehicle]])&lt;br /&gt;
 getOxygenLevel (function: [[getPedOxygenLevel]])&lt;br /&gt;
 getSimplestTask (function: [[getPedSimplestTask]])&lt;br /&gt;
 getStat (function: [[getPedStat]])&lt;br /&gt;
 getTarget (function: [[getPedTarget]])&lt;br /&gt;
 getTargetCollision (function: [[getPedTargetCollision]])&lt;br /&gt;
 getTargetEnd (function: [[getPedTargetEnd]])&lt;br /&gt;
 getTargetStart (function: [[getPedTargetStart]])&lt;br /&gt;
 getTask (function: [[getPedTask]])&lt;br /&gt;
 getTotalAmmo (function: [[getPedTotalAmmo]])&lt;br /&gt;
 getTypeIndexFromClothes (function: [[getTypeIndexFromClothes]])&lt;br /&gt;
 getValidModels (function: [[getValidPedModels]])&lt;br /&gt;
 getVoice (function: [[getPedVoice]])&lt;br /&gt;
 getWalkingStyle (function: [[getPedWalkingStyle]])&lt;br /&gt;
 getWeapon (function: [[getPedWeapon]])&lt;br /&gt;
 getWeaponMuzzlePosition (function: [[getPedWeaponMuzzlePosition]])&lt;br /&gt;
 isChocking (function: [[isPedChoking]])&lt;br /&gt;
 isDoingGangDriveby (function: [[isPedDoingGangDriveby]])&lt;br /&gt;
 isDoingTask (function: [[isPedDoingTask]])&lt;br /&gt;
 isDucked (function: [[isPedDucked]])&lt;br /&gt;
 isHeadless (function: [[isPedHeadless]])&lt;br /&gt;
 isInVehicle (function: [[isPedInVehicle]])&lt;br /&gt;
 isOnFire (function: [[isPedOnFire]])&lt;br /&gt;
 isOnGround (function: [[isPedOnGround]])&lt;br /&gt;
 isTargetingMarkerEnabled (function: [[isPedTargetingMarkerEnabled]])&lt;br /&gt;
 removeClothes (function: [[removePedClothes]])&lt;br /&gt;
 removeFromVehicle (function: [[removePedFromVehicle]])&lt;br /&gt;
 setAimTarget (function: [[setPedAimTarget]])&lt;br /&gt;
 setAnalogControlState (function: [[setPedAnalogControlState]])&lt;br /&gt;
 setAnimation (function: [[setPedAnimation]])&lt;br /&gt;
 setAnimationProgress (function: [[setPedAnimationProgress]])&lt;br /&gt;
 setCameraRotation (function: [[setPedCameraRotation]])&lt;br /&gt;
 setCanBeKnockedOffBike (function: [[setPedCanBeKnockedOffBike]])&lt;br /&gt;
 setControlState (function: [[setPedControlState]])&lt;br /&gt;
 setDoingGangDriveby (function: [[setPedDoingGangDriveby]])&lt;br /&gt;
 setFootBloodEnabled (function: [[setPedFootBloodEnabled]])&lt;br /&gt;
 setHeadless (function: [[setPedHeadless]])&lt;br /&gt;
 setLookAt (function: [[setPedLookAt]])&lt;br /&gt;
 setOnFire (function: [[setPedOnFire]])&lt;br /&gt;
 setOxygenLevel (function: [[setPedOxygenLevel]])&lt;br /&gt;
 setTargetingMarkerEnabled (function: [[setPedTargetingMarkerEnabled]])&lt;br /&gt;
 setVoice (function: [[setPedVoice]])&lt;br /&gt;
 setWalkingStyle (function: [[setPedWalkingStyle]])&lt;br /&gt;
 setWeaponSlot (function: [[setPedWeaponSlot]])&lt;br /&gt;
 warpIntoVehicle (function: [[warpPedIntoVehicle]])&lt;br /&gt;
&lt;br /&gt;
==Player==&lt;br /&gt;
''Inherited from [[#Ped|Ped]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[getPlayerFromName]])&lt;br /&gt;
 getBlurLevel (function: [[getPlayerBlurLevel]])&lt;br /&gt;
 getMapBoundingBox (function: [[getPlayerMapBoundingBox]])&lt;br /&gt;
 getMoney (function: [[getPlayerMoney]])&lt;br /&gt;
 getName (function: [[getPlayerName]])&lt;br /&gt;
 getNametagColor (function: [[getPlayerNametagColor]])&lt;br /&gt;
 getNametagText (function: [[getPlayerNametagText]])&lt;br /&gt;
 getPing (function: [[getPlayerPing]])&lt;br /&gt;
 getSerial (function: [[getPlayerSerial]])&lt;br /&gt;
 getTeam (function: [[getPlayerTeam]])&lt;br /&gt;
 getWantedLevel (function: [[getPlayerWantedLevel]])&lt;br /&gt;
 giveMoney (function: [[givePlayerMoney]])&lt;br /&gt;
 isHudComponentVisible (function: [[isPlayerHudComponentVisible]])&lt;br /&gt;
 isMapForced (function: [[isPlayerMapForced]])&lt;br /&gt;
 isMapVisible (function: [[isPlayerMapVisible]])&lt;br /&gt;
 isNametagShowing (function: [[isPlayerNametagShowing]])&lt;br /&gt;
 setBlurLevel (function: [[setPlayerBlurLevel]])&lt;br /&gt;
 setMoney (function: [[setPlayerMoney]])&lt;br /&gt;
 setNametagColor (function: [[setPlayerNametagColor]])&lt;br /&gt;
 setNametagShowing (function: [[setPlayerNametagShowing]])&lt;br /&gt;
 setNametagText (function: [[setPlayerNametagText]])&lt;br /&gt;
 showHudComponent (function: [[showPlayerHudComponent]])&lt;br /&gt;
 takeMoney (function: [[takePlayerMoney]])&lt;br /&gt;
&lt;br /&gt;
==Object==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 break (function: [[breakObject]])&lt;br /&gt;
 create (function: [[createObject]])&lt;br /&gt;
 getMass (function: [[getObjectMass]])&lt;br /&gt;
 getScale (function: [[getObjectScale]])&lt;br /&gt;
 isBreakable (function: [[isObjectBreakable]])&lt;br /&gt;
 move (function: [[moveObject]])&lt;br /&gt;
 respawn (function: [[respawnObject]])&lt;br /&gt;
 setBreakable (function: [[setObjectBreakable]])&lt;br /&gt;
 setMass (function: [[setObjectMass]])&lt;br /&gt;
 setScale (function: [[setObjectScale]])&lt;br /&gt;
 stop (function: [[stopObject]])&lt;br /&gt;
 toggleObjectRespawn (function: [[toggleObjectRespawn]])&lt;br /&gt;
&lt;br /&gt;
==Marker==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createMarker]])&lt;br /&gt;
 getColor (function: [[getMarkerColor]])&lt;br /&gt;
 getCount (function: [[getMarkerCount]])&lt;br /&gt;
 getIcon (function: [[getMarkerIcon]])&lt;br /&gt;
 getSize (function: [[getMarkerSize]])&lt;br /&gt;
 getTarget (function: [[getMarkerTarget]])&lt;br /&gt;
 getType (function: [[getMarkerType]])&lt;br /&gt;
 setColor (function: [[setMarkerColor]])&lt;br /&gt;
 setIcon (function: [[setMarkerIcon]])&lt;br /&gt;
 setSize (function: [[setMarkerSize]])&lt;br /&gt;
 setTarget (function: [[setMarkerTarget]])&lt;br /&gt;
 setType (function: [[setMarkerType]])&lt;br /&gt;
&lt;br /&gt;
==Blip==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createBlip]])&lt;br /&gt;
 createAttachedTo (function: [[createBlipAttachedTo]])&lt;br /&gt;
 getColor (function: [[getBlipColor]])&lt;br /&gt;
 getIcon (function: [[getBlipIcon]])&lt;br /&gt;
 getOrdering (function: [[getBlipOrdering]])&lt;br /&gt;
 getSize (function: [[getBlipSize]])&lt;br /&gt;
 getVisibleDistance (function: [[getBlipVisibleDistance]])&lt;br /&gt;
 setColor (function: [[setBlipColor]])&lt;br /&gt;
 setIcon (function: [[setBlipIcon]])&lt;br /&gt;
 setOrdering (function: [[setBlipOrdering]])&lt;br /&gt;
 setSize (function: [[setBlipSize]])&lt;br /&gt;
 setVisibleDistance (function: [[setBlipVisibleDistance]])&lt;br /&gt;
&lt;br /&gt;
==Pickup==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createPickup]])&lt;br /&gt;
 getAmmo (function: [[getPickupAmmo]])&lt;br /&gt;
 getAmount (function: [[getPickupAmount]])&lt;br /&gt;
 getType (function: [[getPickupType]])&lt;br /&gt;
 getWeapon (function: [[getPickupWeapon]])&lt;br /&gt;
 setType (function: [[setPickupType]])&lt;br /&gt;
&lt;br /&gt;
==ColShape==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 Circle (function: [[createColCircle]])&lt;br /&gt;
 Cuboid (function: [[createColCuboid]])&lt;br /&gt;
 getElementsWithin (function: [[getElementsWithinColShape]])&lt;br /&gt;
 isElementWithin (function: [[isElementWithinColShape]])&lt;br /&gt;
 Polygon (function: [[createColPolygon]])&lt;br /&gt;
 Rectangle (function: [[createColRectangle]])&lt;br /&gt;
 Sphere (function: [[createColSphere]])&lt;br /&gt;
 Tube (function: [[createColTube]])&lt;br /&gt;
&lt;br /&gt;
==Projectile==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createProjectile]])&lt;br /&gt;
 getCounter (function: [[getProjectileCounter]])&lt;br /&gt;
 getCreator (function: [[getProjectileCreator]])&lt;br /&gt;
 getForce (function: [[getProjectileForce]])&lt;br /&gt;
 getTarget (function: [[getProjectileTarget]])&lt;br /&gt;
 getType (function: [[getProjectileType]])&lt;br /&gt;
 setCounter (function: [[setProjectileCounter]])&lt;br /&gt;
&lt;br /&gt;
==RadarArea==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createRadarArea]])&lt;br /&gt;
 getColor (function: [[getRadarAreaColor]])&lt;br /&gt;
 getSize (function: [[getRadarAreaSize]])&lt;br /&gt;
 isFlashing (function: [[isRadarAreaFlashing]])&lt;br /&gt;
 isInside (function: [[isInsideRadarArea]])&lt;br /&gt;
 setColor (function: [[setRadarAreaColor]])&lt;br /&gt;
 setFlashing (function: [[setRadarAreaFlashing]])&lt;br /&gt;
 setSize (function: [[setRadarAreaSize]])&lt;br /&gt;
&lt;br /&gt;
==Team==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 countPlayers (function: [[countPlayersInTeam]])&lt;br /&gt;
 create (function: [[getTeamFromName]])&lt;br /&gt;
 getColor (function: [[getTeamColor]])&lt;br /&gt;
 getFriendlyFire (function: [[getTeamFriendlyFire]])&lt;br /&gt;
 getFromName (function: [[getTeamFromName]])&lt;br /&gt;
 getName (function: [[getTeamName]])&lt;br /&gt;
&lt;br /&gt;
==Water==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createWater]])&lt;br /&gt;
 getColor (function: [[getWaterColor]])&lt;br /&gt;
 getLevel (function: [[getWaterLevel]])&lt;br /&gt;
 getVertexPosition (function: [[getWaterVertexPosition]])&lt;br /&gt;
 getWaveHeight (function: [[getWaveHeight]])&lt;br /&gt;
 isDrawnLast (function: [[isWaterDrawnLast]])&lt;br /&gt;
 resetColor (function: [[resetWaterColor]])&lt;br /&gt;
 resetLevel (function: [[resetWaterLevel]])&lt;br /&gt;
 setColor (function: [[setWaterColor]])&lt;br /&gt;
 setDrawnLast (function: [[setWaterDrawnLast]])&lt;br /&gt;
 setLevel (function: [[setWaterLevel]])&lt;br /&gt;
 setVertexPosition (function: [[setWaterVertexPosition]])&lt;br /&gt;
 setWaveHeight (function: [[setWaveHeight]])&lt;br /&gt;
 testLineAgainst (function: [[testLineAgainstWater]])&lt;br /&gt;
&lt;br /&gt;
==Sound==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[playSound]])&lt;br /&gt;
 getBPM (function: [[getSoundBPM]])&lt;br /&gt;
 getEffects (function: [[getSoundEffects]])&lt;br /&gt;
 getFFTData (function: [[getSoundFFTData]])&lt;br /&gt;
 getLength (function: [[getSoundLength]])&lt;br /&gt;
 getLevelData (function: [[getSoundLevelData]])&lt;br /&gt;
 getMetaTags (function: [[getSoundMetaTags]])&lt;br /&gt;
 getPan (function: [[getSoundPan]])&lt;br /&gt;
 getPlaybackPosition (function: [[getSoundPosition]])&lt;br /&gt;
 getProperties (function: [[getSoundProperties]])&lt;br /&gt;
 getSpeed (function: [[getSoundSpeed]])&lt;br /&gt;
 getVolume (function: [[getSoundVolume]])&lt;br /&gt;
 getWaveData (function: [[getSoundWaveData]])&lt;br /&gt;
 isPaused (function: [[isSoundPaused]])&lt;br /&gt;
 setEffectEnabled (function: [[setSoundEffectEnabled]])&lt;br /&gt;
 setPan (function: [[setSoundPan]])&lt;br /&gt;
 setPaused (function: [[setSoundPaused]])&lt;br /&gt;
 setPlaybackPosition (function: [[setSoundPosition]])&lt;br /&gt;
 setProperties (function: [[setSoundProperties]])&lt;br /&gt;
 setSpeed (function: [[setSoundSpeed]])&lt;br /&gt;
 setVolume (function: [[setSoundVolume]])&lt;br /&gt;
 stop (function: [[stopSound]])&lt;br /&gt;
&lt;br /&gt;
==Sound3D==&lt;br /&gt;
''Inherited from [[#Sound|Sound]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[playSound3D]])&lt;br /&gt;
 getMaxDistance (function: [[getSoundMaxDistance]])&lt;br /&gt;
 getMinDistance (function: [[getSoundMinDistance]])&lt;br /&gt;
 setMaxDistance (function: [[setSoundMaxDistance]])&lt;br /&gt;
 setMinDistance (function: [[setSoundMinDistance]])&lt;br /&gt;
&lt;br /&gt;
==Weapon==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[createWeapon]])&lt;br /&gt;
 fire (function: [[fireWeapon]])&lt;br /&gt;
 getAmmo (function: [[getWeaponAmmo]])&lt;br /&gt;
 getClipAmmo (function: [[getWeaponClipAmmo]])&lt;br /&gt;
 getFiringRate (function: [[getWeaponFiringRate]])&lt;br /&gt;
 getFlags (function: [[getWeaponFlags]])&lt;br /&gt;
 getOwner (function: [[getWeaponOwner]])&lt;br /&gt;
 getProperty (function: [[setWeaponProperty]])&lt;br /&gt;
 getState (function: [[getWeaponState]])&lt;br /&gt;
 getTarget (function: [[getWeaponTarget]])&lt;br /&gt;
 resetFiringRate (function: [[resetWeaponFiringRate]])&lt;br /&gt;
 setAmmo (function: [[setWeaponAmmo]])&lt;br /&gt;
 setClipAmmo (function: [[setWeaponClipAmmo]])&lt;br /&gt;
 setFiringRate (function: [[setWeaponFiringRate]])&lt;br /&gt;
 setFlags (function: [[setWeaponFlags]])&lt;br /&gt;
 setOwner (function: [[setWeaponOwner]])&lt;br /&gt;
 setProperty (function: [[setWeaponProperty]])&lt;br /&gt;
 setState (function: [[setWeaponState]])&lt;br /&gt;
 setTarget (function: [[setWeaponTarget]])&lt;br /&gt;
&lt;br /&gt;
==Effect==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 addBlood (function: [[fxAddBlood]])&lt;br /&gt;
 addBulletImpact (function: [[fxAddBulletImpact]])&lt;br /&gt;
 addBulletSplash (function: [[fxAddBulletSplash]])&lt;br /&gt;
 addDebris (function: [[fxAddDebris]])&lt;br /&gt;
 addFootSplash (function: [[fxAddFootSplash]])&lt;br /&gt;
 addGlass (function: [[fxAddGlass]])&lt;br /&gt;
 addGunshot (function: [[fxAddGunshot]])&lt;br /&gt;
 addPunchImpact (function: [[fxAddPunchImpact]])&lt;br /&gt;
 addSparks (function: [[fxAddSparks]])&lt;br /&gt;
 addTankFire (function: [[fxAddTankFire]])&lt;br /&gt;
 addTyreBurst (function: [[fxAddTyreBurst]])&lt;br /&gt;
 addWaterHydrant (function: [[fxAddWaterHydrant]])&lt;br /&gt;
 addWaterSplash (function: [[fxAddWaterSplash]])&lt;br /&gt;
 addWood (function: [[fxAddWood]])&lt;br /&gt;
 create (function: [[createEffect]])&lt;br /&gt;
 getDensity (function: [[getEffectDensity]])&lt;br /&gt;
 getSpeed (function: [[getEffectSpeed]])&lt;br /&gt;
 setDensity (function: [[setEffectDensity]])&lt;br /&gt;
 setSpeed (function: [[setEffectSpeed]])&lt;br /&gt;
&lt;br /&gt;
==GuiElement==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 bringToFront (function: [[guiBringToFront]])&lt;br /&gt;
 moveToBack (function: [[guiMoveToBack]])&lt;br /&gt;
 isChatBoxInputActive (function: [[isChatBoxInputActive]])&lt;br /&gt;
 isConsoleActive (function: [[isConsoleActive]])&lt;br /&gt;
 isDebugViewActive (function: [[isDebugViewActive]])&lt;br /&gt;
 isMainMenuActive (function: [[isMainMenuActive]])&lt;br /&gt;
 isMTAWindowActive (function: [[isMTAWindowActive]])&lt;br /&gt;
 isTransferBoxActive (function: [[isTransferBoxActive]])&lt;br /&gt;
 isInputEnabled (function: [[guiGetInputEnabled]])&lt;br /&gt;
 getInputMode (function: [[guiGetInputMode]])&lt;br /&gt;
 getScreenSize (function: [[guiGetScreenSize]])&lt;br /&gt;
 getProperties (function: [[guiGetProperties]])&lt;br /&gt;
 getAlpha (function: [[guiGetAlpha]])&lt;br /&gt;
 getFont (function: [[guiGetFont]])&lt;br /&gt;
 getEnabled (function: [[guiGetEnabled]])&lt;br /&gt;
 getVisible (function: [[guiGetVisible]])&lt;br /&gt;
 getText (function: [[guiGetText]])&lt;br /&gt;
 getPosition (function: [[guiGetPosition]])&lt;br /&gt;
 getSize (function: [[guiGetSize]])&lt;br /&gt;
 getProperty (function: [[guiGetProperty]])&lt;br /&gt;
 setInputEnabled (function: [[guiSetInputEnabled]])&lt;br /&gt;
 setAlpha (function: [[guiSetAlpha]])&lt;br /&gt;
 setEnabled (function: [[guiSetEnabled]])&lt;br /&gt;
 setFont (function: [[guiSetFont]])&lt;br /&gt;
 setVisible (function: [[guiSetVisible]])&lt;br /&gt;
 setText (function: [[guiSetText]])&lt;br /&gt;
 setInputMode (function: [[guiSetInputMode]])&lt;br /&gt;
 setProperty (function: [[guiSetProperty]])&lt;br /&gt;
 setPosition (function: [[guiSetPosition]])&lt;br /&gt;
 setSize (function: [[guiSetSize]])&lt;br /&gt;
==GuiWindow==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateWindow]])&lt;br /&gt;
 setMovable (function: [[guiWindowSetMovable]])&lt;br /&gt;
 setSizable (function: [[guiWindowSetSizable]])&lt;br /&gt;
==GuiButton==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateButton]])&lt;br /&gt;
==GuiEdit==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateEdit]])&lt;br /&gt;
 getCaretIndex (function: [[guiEditGetCaretIndex]])&lt;br /&gt;
 setCaretIndex (function: [[guiEditSetCaretIndex]])&lt;br /&gt;
 setReadOnly (function: [[guiEditSetReadOnly]])&lt;br /&gt;
 setMasked (function: [[guiEditSetMasked]])&lt;br /&gt;
 setMaxLength (function: [[guiEditSetMaxLength]])&lt;br /&gt;
==GuiLabel==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateLabel]])&lt;br /&gt;
 getFontHeight (function: [[guiLabelGetFontHeight]])&lt;br /&gt;
 getTextExtent (function: [[guiLabelGetTextExtent]])&lt;br /&gt;
 getColor (function: [[guiLabelGetColor]])&lt;br /&gt;
 setColor (function: [[guiLabelSetColor]])&lt;br /&gt;
 setHorizontalAlign (function: [[guiLabelSetHorizontalAlign]])&lt;br /&gt;
 setVerticalAlign (function: [[guiLabelSetVerticalAlign]])&lt;br /&gt;
==GuiMemo==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateMemo]])&lt;br /&gt;
 getCaretIndex (function: [[guiMemoGetCaretIndex]])&lt;br /&gt;
 setCaretIndex (function: [[guiMemoSetCaretIndex]])&lt;br /&gt;
 setReadOnly (function: [[guiMemoSetReadOnly]])&lt;br /&gt;
==GuiStaticImage==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateStaticImage]])&lt;br /&gt;
 loadImage (function: [[guiStaticImageLoadImage]])&lt;br /&gt;
==GuiComboBox==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateComboBox]])&lt;br /&gt;
 addItem (function: [[guiComboBoxAddItem]])&lt;br /&gt;
 clear (function: [[guiComboBoxClear]])&lt;br /&gt;
 removeItem (function: [[guiComboBoxRemoveItem]])&lt;br /&gt;
 getSelected (function: [[guiComboBoxGetSelected]])&lt;br /&gt;
 getItemText (function: [[guiComboBoxGetItemText]])&lt;br /&gt;
 setItemText (function: [[guiComboBoxSetItemText]])&lt;br /&gt;
 setSelected (function: [[guiComboBoxSetSelected]])&lt;br /&gt;
==GuiCheckBox==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateCheckBox]])&lt;br /&gt;
 getSelected (function: [[guiCheckBoxGetSelected]])&lt;br /&gt;
 setSelected (function: [[guiCheckBoxSetSelected]])&lt;br /&gt;
==GuiRadioButton==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateRadioButton]])&lt;br /&gt;
 getSelected (function: [[guiRadioButtonGetSelected]])&lt;br /&gt;
 setSelected (function: [[guiRadioButtonSetSelected]])&lt;br /&gt;
==GuiScrollPane==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateScrollPane]])&lt;br /&gt;
 getHorizontalScrollPosition (function: [[guiScrollPaneGetHorizontalScrollPosition]])&lt;br /&gt;
 getVerticalScrollPosition (function: [[guiScrollPaneGetVerticalScrollPosition]])&lt;br /&gt;
 setHorizontalScrollPosition (function: [[guiScrollPaneSetHorizontalScrollPosition]])&lt;br /&gt;
 setScrollBars (function: [[guiScrollPaneSetScrollBars]])&lt;br /&gt;
 setVerticalScrollPosition (function: [[guiScrollPaneSetVerticalScrollPosition]])&lt;br /&gt;
==GuiScrollBar==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateScrollBar]])&lt;br /&gt;
 getScrollPosition (function: [[guiScrollBarGetScrollPosition]])&lt;br /&gt;
 setScrollPosition (function: [[guiScrollBarSetScrollPosition]])&lt;br /&gt;
==GuiProgressBar==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateProgressBar]])&lt;br /&gt;
 getProgress (function: [[guiProgressBarGetProgress]])&lt;br /&gt;
 setProgress (function: [[guiProgressBarSetProgress]])&lt;br /&gt;
==GuiGridList==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateGridList]])&lt;br /&gt;
 addColumn (function: [[guiGridListAddColumn]])&lt;br /&gt;
 addRow (function: [[guiGridListAddRow]])&lt;br /&gt;
 autoSizeColumn (function: [[guiGridListAutoSizeColumn]])&lt;br /&gt;
 clear (function: [[guiGridListClear]])&lt;br /&gt;
 insertRowAfter (function: [[guiGridListInsertRowAfter]])&lt;br /&gt;
 removeColumn (function: [[guiGridListRemoveColumn]])&lt;br /&gt;
 removeRow (function: [[guiGridListRemoveRow]])&lt;br /&gt;
 getItemData (function: [[guiGridListGetItemData]])&lt;br /&gt;
 getItemText (function: [[guiGridListGetItemText]])&lt;br /&gt;
 getRowCount (function: [[guiGridListGetRowCount]])&lt;br /&gt;
 getSelectedItem (function: [[guiGridListGetSelectedItem]])&lt;br /&gt;
 getItemColor (function: [[guiGridListGetItemColor]])&lt;br /&gt;
 getColumnTitle (function: [[guiGridListGetColumnTitle]])&lt;br /&gt;
 getHorizontalScrollPosition (function: [[guiGridListGetHorizontalScrollPosition]])&lt;br /&gt;
 getVerticalScrollPosition (function: [[guiGridListGetVerticalScrollPosition]])&lt;br /&gt;
 getSelectedCount (function: [[guiGridListGetSelectedCount]])&lt;br /&gt;
 getSelectedItems (function: [[guiGridListGetSelectedItems]])&lt;br /&gt;
 getColumnCount (function: [[guiGridListGetColumnCount]])&lt;br /&gt;
 setItemData (function: [[guiGridListSetItemData]])&lt;br /&gt;
 setItemText (function: [[guiGridListSetItemText]])&lt;br /&gt;
 setScrollBars (function: [[guiGridListSetScrollBars]])&lt;br /&gt;
 setSelectedItem (function: [[guiGridListSetSelectedItem]])&lt;br /&gt;
 setSelectionMode (function: [[guiGridListSetSelectionMode]])&lt;br /&gt;
 setSortingEnabled (function: [[guiGridListSetSortingEnabled]])&lt;br /&gt;
 setColumnWidth (function: [[guiGridListSetColumnWidth]])&lt;br /&gt;
 setItemColor (function: [[guiGridListSetItemColor]])&lt;br /&gt;
 setColumnTitle (function: [[guiGridListSetColumnTitle]])&lt;br /&gt;
 setHorizontalScrollPosition (function: [[guiGridListSetHorizontalScrollPosition]])&lt;br /&gt;
 setVerticalScrollPosition (function: [[guiGridListSetVerticalScrollPosition]])&lt;br /&gt;
&lt;br /&gt;
==GuiTabPanel==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateTabPanel]])&lt;br /&gt;
 getSelectedTab (function: [[guiGetSelectedTab]])&lt;br /&gt;
 setSelectedTab (function: [[guiSetSelectedTab]])&lt;br /&gt;
==GuiTab==&lt;br /&gt;
''Inherited from [[#GuiElement|GuiElement]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateTab]])&lt;br /&gt;
 delete (function: [[guiDeleteTab]])&lt;br /&gt;
==GuiFont==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[guiCreateFont]])&lt;br /&gt;
==Resource==&lt;br /&gt;
 create (function: [[getResourceFromName]])&lt;br /&gt;
 fromName (function: [[getResourceFromName]])&lt;br /&gt;
 getGuiElement (function: [[getResourceGUIElement]])&lt;br /&gt;
 getRootElement (function: [[getResourceRootElement]])&lt;br /&gt;
 getName (function: [[getResourceName]])&lt;br /&gt;
 getThis (function: [[getThisResource]])&lt;br /&gt;
 getConfig (function: [[getResourceConfig]])&lt;br /&gt;
 getConfig (function: [[getResourceConfig]])&lt;br /&gt;
 getDynamicElementRoot (function: [[getResourceDynamicElementRoot]])&lt;br /&gt;
 getExportedFunctions (function: [[getResourceExportedFunctions]])&lt;br /&gt;
 getState (function: [[getResourceState]])&lt;br /&gt;
==Timer==&lt;br /&gt;
 create (function: [[setTimer]])&lt;br /&gt;
 destroy (function: [[killTimer]])&lt;br /&gt;
 reset (function: [[resetTimer]])&lt;br /&gt;
 isValid (function: [[isTimer]])&lt;br /&gt;
 getDetails (function: [[getTimerDetails]])&lt;br /&gt;
==File==&lt;br /&gt;
 create (function: [[fileOpen]])&lt;br /&gt;
 destroy (function: [[fileClose]])&lt;br /&gt;
 close (function: [[fileClose]])&lt;br /&gt;
 new (function: [[fileCreate]])&lt;br /&gt;
 delete (function: [[fileDelete]])&lt;br /&gt;
 exists (function: [[fileExists]])&lt;br /&gt;
 flush (function: [[fileFlush]])&lt;br /&gt;
 getPos (function: [[fileGetPos]])&lt;br /&gt;
 getSize (function: [[fileGetSize]])&lt;br /&gt;
 isEOF (function: [[fileIsEOF]])&lt;br /&gt;
 read (function: [[fileRead]])&lt;br /&gt;
 rename (function: [[fileRename]])&lt;br /&gt;
 setPos (function: [[fileSetPos]])&lt;br /&gt;
 write (function: [[fileWrite]])&lt;br /&gt;
 copy (function: [[fileCopy]])&lt;br /&gt;
==XML==&lt;br /&gt;
 load (function: [[xmlLoadFile]])&lt;br /&gt;
 unload (function: [[xmlUnloadFile]])&lt;br /&gt;
 copy (function: [[xmlCopyFile]])&lt;br /&gt;
 create (function: [[xmlCreateFile]])&lt;br /&gt;
 destroy (function: [[xmlDestroyNode]])&lt;br /&gt;
 setValue (function: [[xmlNodeGetValue]])&lt;br /&gt;
 setAttribute (function: [[xmlNodeSetAttribute]])&lt;br /&gt;
 setValue (function: [[xmlNodeSetValue]])&lt;br /&gt;
 saveFile (function: [[xmlSaveFile]])&lt;br /&gt;
 createChild (function: [[xmlCreateChild]])&lt;br /&gt;
 findChild (function: [[xmlFindChild]])&lt;br /&gt;
 getAttributes (function: [[xmlNodeGetAttributes]])&lt;br /&gt;
 getChildren (function: [[xmlNodeGetChildren]])&lt;br /&gt;
 getName (function: [[xmlNodeGetName]])&lt;br /&gt;
 getParent (function: [[xmlNodeGetParent]])&lt;br /&gt;
 getAttribute (function: [[xmlNodeGetAttribute]])&lt;br /&gt;
 setName (function: [[xmlNodeSetName]])&lt;br /&gt;
==Camera==&lt;br /&gt;
 fade (function: [[fadeCamera]])&lt;br /&gt;
 getTarget (function: [[getCameraTarget]])&lt;br /&gt;
 getInterior (function: [[getCameraInterior]])&lt;br /&gt;
 getViewMode (function: [[getCameraViewMode]])&lt;br /&gt;
 getGoggleEffect (function: [[getCameraGoggleEffect]])&lt;br /&gt;
 setInterior (function: [[setCameraInterior]])&lt;br /&gt;
 setTarget (function: [[setCameraTarget]])&lt;br /&gt;
 setViewMode (function: [[setCameraViewMode]])&lt;br /&gt;
 setGoggleEffect (function: [[setCameraGoggleEffect]])&lt;br /&gt;
 setClip (function: [[setCameraClip]])&lt;br /&gt;
==Engine==&lt;br /&gt;
 restoreCOL (function: [[engineRestoreCOL]])&lt;br /&gt;
 restoreModel (function: [[engineRestoreModel]])&lt;br /&gt;
 setAsynchronousLoading (function: [[engineSetAsynchronousLoading]])&lt;br /&gt;
 setModelLODDistance (function: [[engineSetModelLODDistance]])&lt;br /&gt;
 getVisibleTextureName (function: [[engineGetVisibleTextureNames]])&lt;br /&gt;
 getModelLODDistance (function: [[engineGetModelLODDistance]])&lt;br /&gt;
 getModelTextureNames (function: [[engineGetModelTextureNames]])&lt;br /&gt;
 getModelIDFromName (function: [[engineGetModelIDFromName]])&lt;br /&gt;
 getModelNameFromID (function: [[engineGetModelNameFromID]])&lt;br /&gt;
==EngineCOL==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[engineLoadCOL]])&lt;br /&gt;
 replace (function: [[engineReplaceCOL]])&lt;br /&gt;
==EngineTXD==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[engineLoadTXD]])&lt;br /&gt;
 import (function: [[engineImportTXD]])&lt;br /&gt;
==EngineDFF==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[engineLoadDFF]])&lt;br /&gt;
 replace (function: [[engineReplaceModel]])&lt;br /&gt;
==DxMaterial==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 getSize (function: [[dxGetMaterialSize]])&lt;br /&gt;
==DxTexture==&lt;br /&gt;
''Inherited from [[#DxMaterial|DxMaterial]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[dxCreateTexture]])&lt;br /&gt;
 setEdge (function: [[dxSetTextureEdge]])&lt;br /&gt;
 setPixels (function: [[dxSetTexturePixels]])&lt;br /&gt;
 getPixels (function: [[dxGetTexturePixels]])&lt;br /&gt;
==DxFont==&lt;br /&gt;
 create (function: [[dxCreateFont]])&lt;br /&gt;
 getHeight (function: [[dxGetFontHeight]])&lt;br /&gt;
 getTextWidth (function: [[dxGetTextWidth]])&lt;br /&gt;
==DxShader==&lt;br /&gt;
''Inherited from [[#DxMaterial|DxMaterial]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[dxCreateShader]])&lt;br /&gt;
 setValue (function: [[dxSetShaderValue]])&lt;br /&gt;
 setTessellation (function: [[dxSetShaderTessellation]])&lt;br /&gt;
 setTransform (function: [[dxSetShaderTransform]])&lt;br /&gt;
 value (function: [[dxGetFontHeight]])&lt;br /&gt;
==DxScreenSource==&lt;br /&gt;
 create (function: [[dxCreateScreenSource]])&lt;br /&gt;
 update (function: [[dxUpdateScreenSource]])&lt;br /&gt;
==DxRenderTarget==&lt;br /&gt;
 create (function: [[dxCreateRenderTarget]])&lt;br /&gt;
 setAsTarget (function: [[dxSetRenderTarget]])&lt;br /&gt;
&lt;br /&gt;
[[Category:OOP]]&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AclGroupClone&amp;diff=49962</id>
		<title>AclGroupClone</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AclGroupClone&amp;diff=49962"/>
		<updated>2016-12-24T16:35:29Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function clone a group to another group with/without ACLs and/or objects .&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool aclGroupClone ( string groupToClone, string groupName, bool cloneACLs, bool cloneObjects )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''groupToClone''': The group name to clone&lt;br /&gt;
* '''groupName''': The new group name after clone&lt;br /&gt;
* '''cloneACLs''': true to clone group ACLs, false to dismiss ACLs clone&lt;br /&gt;
* '''cloneObjects''': true to clone group objects, false to dismiss group objects&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if success, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function aclGroupClone( clonedGroup, groupName, aclsClone, objectsClone )&lt;br /&gt;
	if ( type( clonedGroup ) ~= 'string' ) then &lt;br /&gt;
		error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected string at argument 1, got &amp;quot; .. tostring( clonedGroup ) .. &amp;quot;]&amp;quot; ) return false end&lt;br /&gt;
			if ( aclsClone == true or aclsClone == false ) then &lt;br /&gt;
				if ( objectsClone == true or objectsClone == false ) then &lt;br /&gt;
					local cloned = aclGetGroup( clonedGroup )&lt;br /&gt;
						if ( cloned == false or not cloned ) then&lt;br /&gt;
							outputDebugString( &amp;quot;Bad argument @ 'aclGroupClone' [Expected acl-group at argument 1, got string '&amp;quot; .. tostring( clonedGroup ) .. &amp;quot;']&amp;quot;, 2 ) return false end&lt;br /&gt;
								local newGroup = aclCreateGroup( groupName )&lt;br /&gt;
									if ( newGroup == false or not newGroup ) then&lt;br /&gt;
										outputDebugString( &amp;quot;Bad argument @ 'aclGroupClone' [Expected acl-group at argument 2, got string '&amp;quot; .. tostring( groupName ) .. &amp;quot;']&amp;quot;, 2 ) return false end&lt;br /&gt;
											if ( aclsClone == true ) then&lt;br /&gt;
												for index, value in ipairs( aclGroupListACL( cloned ) ) do&lt;br /&gt;
											aclGroupAddACL( newGroup, value )&lt;br /&gt;
										end&lt;br /&gt;
									end&lt;br /&gt;
								if ( objectsClone == true ) then&lt;br /&gt;
							for index, value in ipairs( aclGroupListObjects( cloned ) ) do&lt;br /&gt;
						aclGroupAddObject( newGroup, value )&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			outputDebugString( &amp;quot;'aclGroupClone' [The group '&amp;quot;..clonedGroup..&amp;quot;' has been cloned successfully to '&amp;quot;..groupName..&amp;quot;' .&amp;quot;, 3 ) return true&lt;br /&gt;
		else error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected boolean at argument 4, got &amp;quot; .. tostring( objectsClone ) .. &amp;quot;]&amp;quot; ) return false&lt;br /&gt;
	end&lt;br /&gt;
	else error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected boolean at argument 3, got &amp;quot; .. tostring( aclsClone ) .. &amp;quot;]&amp;quot; ) return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Clone 'Console' Group to 'OwnersGroup' and clone ACLs and objects&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onResourceStart', resourceRoot,&lt;br /&gt;
function(  )&lt;br /&gt;
	setTimer( aclGroupClone, 1000, 1, 'Console', 'OwnersGroup', true, true ) -- Clone 'Console' Group to 'OwnersGroup' and clone ACLs and objects&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way to clone groups and rights and objects&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AclGroupClone&amp;diff=49961</id>
		<title>AclGroupClone</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AclGroupClone&amp;diff=49961"/>
		<updated>2016-12-24T16:19:12Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function clone a group to another group with/without ACLs and/or objects .&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool aclGroupClone ( string groupToClone, string groupName, bool cloneACLs, bool cloneObjects )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''groupToClone''': The group name to clone&lt;br /&gt;
* '''groupName''': The new group name after clone&lt;br /&gt;
* '''cloneACLs''': true to clone group ACLS, false to dismiss ACLS clone&lt;br /&gt;
* '''cloneObjects''': true to clone group objects, false to dismiss group objects&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if success, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function aclGroupClone( clonedGroup, groupName, aclsClone, objectsClone )&lt;br /&gt;
	if ( type( clonedGroup ) ~= 'string' ) then &lt;br /&gt;
		error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected string at argument 1, got &amp;quot; .. tostring( clonedGroup ) .. &amp;quot;]&amp;quot; ) return false end&lt;br /&gt;
			if ( aclsClone == true or aclsClone == false ) then &lt;br /&gt;
				if ( objectsClone == true or objectsClone == false ) then &lt;br /&gt;
					local cloned = aclGetGroup( clonedGroup )&lt;br /&gt;
						if ( cloned == false or not cloned ) then&lt;br /&gt;
							outputDebugString( &amp;quot;Bad argument @ 'aclGroupClone' [Expected acl-group at argument 1, got string '&amp;quot; .. tostring( clonedGroup ) .. &amp;quot;']&amp;quot;, 2 ) return false end&lt;br /&gt;
								local newGroup = aclCreateGroup( groupName )&lt;br /&gt;
									if ( newGroup == false or not newGroup ) then&lt;br /&gt;
										outputDebugString( &amp;quot;Bad argument @ 'aclGroupClone' [Expected acl-group at argument 2, got string '&amp;quot; .. tostring( groupName ) .. &amp;quot;']&amp;quot;, 2 ) return false end&lt;br /&gt;
											if ( aclsClone == true ) then&lt;br /&gt;
												for index, value in ipairs( aclGroupListACL( cloned ) ) do&lt;br /&gt;
											aclGroupAddACL( newGroup, value )&lt;br /&gt;
										end&lt;br /&gt;
									end&lt;br /&gt;
								if ( objectsClone == true ) then&lt;br /&gt;
							for index, value in ipairs( aclGroupListObjects( cloned ) ) do&lt;br /&gt;
						aclGroupAddObject( newGroup, value )&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			outputDebugString( &amp;quot;'aclGroupClone' [The group '&amp;quot;..clonedGroup..&amp;quot;' has been cloned successfully to '&amp;quot;..groupName..&amp;quot;' .&amp;quot;, 3 ) return true&lt;br /&gt;
		else error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected boolean at argument 4, got &amp;quot; .. tostring( objectsClone ) .. &amp;quot;]&amp;quot; ) return false&lt;br /&gt;
	end&lt;br /&gt;
	else error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected boolean at argument 3, got &amp;quot; .. tostring( aclsClone ) .. &amp;quot;]&amp;quot; ) return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Clone 'Console' Group to 'OwnersGroup' and clone ACLs and objects&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onResourceStart', resourceRoot,&lt;br /&gt;
function(  )&lt;br /&gt;
	setTimer( aclGroupClone, 1000, 1, 'Console', 'OwnersGroup', true, true ) -- Clone 'Console' Group to 'OwnersGroup' and clone ACLs and objects&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way to clone groups and rights and objects&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=49960</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=49960"/>
		<updated>2016-12-24T16:17:39Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* ACL functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== ACL functions ===&lt;br /&gt;
*[[aclGroupClone]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function clone a group to another group with/without ACLs and/or objects.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerAcls]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all ACL groups on a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInACL]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element is in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[renameAclGroup]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gives an existing ACL group a new name.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Account functions ===&lt;br /&gt;
*[[setAccountName]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is used to change an existing account's name.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Camera functions ===&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to create a cinematic camera flight.&lt;br /&gt;
&lt;br /&gt;
=== Cursor functions ===&lt;br /&gt;
*[[getCursorMoveOn]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Drawing functions ===&lt;br /&gt;
*[[dxDrawAnimWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an animated 2D window on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawCircle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a number of 2D lines in order to achieve a circle shape on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawOctagon3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function creates a 3D Octagon&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTriangle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a triangle with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLinedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a rectangle outline with dx lines.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawBorderedRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This is a function that will create a bordered rectangle .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites in 2D.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImageOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an image on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLoading]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a loading bar on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawProgressBar]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates a progress bar drawed using DirectDraw.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a text on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the font size from given height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Effects functions ===&lt;br /&gt;
*[[attachEffect]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you attach an effect to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Elements functions === &lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the specified element's speed in m/s, km/h or mph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsInDimension]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are in the specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsWithinMarker]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are within a marker's collision shape.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in the player's camera picture area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if an element's range to a main point is within the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementMoving]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementWithinAColShape]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is within a collision shape element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set the speed of an element in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Events ===&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicle's weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Input functions ===&lt;br /&gt;
*[[bindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to bind each key bound to a control individually. Doing this bypasses a little MTA restriction.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBoundControls]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of control names that are bound to the specified key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[unbindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to unbind each key bound to a control individually. Use this function with [[bindControlKeys]].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data functions === &lt;br /&gt;
*[[capitalize]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function capitalizes a given string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts and formats large numbers.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertServerTickToTimeStamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts server ticks to a unix timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertTextToSpeech]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts the provided text to a speech in the provided language which players can hear.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRealMonthM]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gives you the real months name&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRealMonthH]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function convert english months to arabic months&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function generates a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateRandomASCIIString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a random string which uses ASCII characters. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a given birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getEasterDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns easter date monthday and month for a given year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getKeyFromValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the key of the specified value in a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRGColorFromPercentage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;»This function returns two integers representing red and green colors according to the specified percentage.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenRotationFromWorldPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a screen relative rotation to a world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the UNIX timestamp of a specified date and time.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a boolean representing if a given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isValidMail]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a provided e-mail string is valid.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[removeHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is used to remove hex color codes from strings.&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[secondsToTimeDesc]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a plain seconds-integer into a user-friendly time description.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function counts the amount of occurences of a string in a string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a physical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== GUI functions === &lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function centers a CEGUI window element responsively in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
=====Comboboxes=====&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function adjusts a CEGUI combobox element to have the correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
=====Gridlists=====&lt;br /&gt;
*[[getGridListRowIndexFromText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the GridList row index from the specified text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetSelectedText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string containing the inner text of a selected gridlist item.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListAddPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function add all online players to a grid list.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isTextInGridList]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if some text exist or not in the GridList.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Math functions ===&lt;br /&gt;
*[[mathNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is a workaround for the client-side floating-point precision of 24-bits.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.hypot]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the Hypotenuse of the triangle given by sides x and y.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.percent]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a percentage from two number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Ped functions ===&lt;br /&gt;
*[[getAlivePlayers (Client)|getAlivePlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all logged-in administrators.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxHealth]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a pedestrians's maximum health by converting it from their maximum health stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxOxygenLevel]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's maximum oxygen level by converting it from their maximum underwater stamina stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from partial name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromSerial]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from their serial.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInGroup]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all Players In Group .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGuestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gets a players not login or players Guest .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersByData]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of players that have the specified data name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all players in photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a pedestrian is aiming their weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDrivingVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified pedestrian is driving a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is in a specified team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAimingNearPed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This is similar to isPedAiming but uses a colshape to be more precise.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedEyesPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get peds eyes position.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Resource functions ===&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceScripts]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource scripts.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[refreshResource]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function refreshes your resource if you changed any of the files&lt;br /&gt;
&lt;br /&gt;
=== Sound functions ===&lt;br /&gt;
*[[isSoundFinished]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element has finished.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[stopSoundSlowly]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function stop your sound element slowly.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Table functions ===&lt;br /&gt;
*[[rangeToTable]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a string range to a table containing number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.compare]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether two given tables are equal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.empty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a table is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.merge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function merges two or more tables together.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.removeValue]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function removes a specified value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Team functions ===&lt;br /&gt;
*[[getTeamFromColor]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element by the specified color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamWithFewestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element with least players of all the specified teams.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Vehicle funcions === &lt;br /&gt;
*[[getRandomVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gets a random vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getValidVehicleModels]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all valid vehicle models.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehicleRespawnPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get the respawn position of a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehiclesCountByType]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the amount of vehicles by the given type as an integer value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleEmpty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a vehicle is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOccupied]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is occupied.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Weapon functions === &lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== XML functions ===&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all children of a XML node.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Utility ===&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if its arguments are of the right type and calls the error-function if one is not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function applies a fix for hidden coroutine error messages.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any client-side function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[createAnimation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to use interpolateBetween without render event and easily used.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBanFromName]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This functions returns the ban of the given playername.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCurrentFPS]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the frames per second at which GTA: SA is running.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCursorOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether the cursor is in a particular area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInCircle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a cursor position is in circular area or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a rectangular position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns ''a time-saving'' iterator for your for-loops.&amp;lt;/span&amp;gt;&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=AclGroupClone&amp;diff=49959</id>
		<title>AclGroupClone</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=AclGroupClone&amp;diff=49959"/>
		<updated>2016-12-24T16:13:28Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: This function can be useful, Shortcut way to clone groups and rights and objects&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function clone a group to another group with/without ACLs and/or objects .&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool aclGroupClone ( string groupToClone, string groupName, bool cloneACLs, bool cloneObjects )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''groupToClone''': The group name to clone&lt;br /&gt;
* '''groupName''': The new group name after clone&lt;br /&gt;
* '''cloneACLs''': true to clone group ACLS, false to dismiss ACLS clone&lt;br /&gt;
* '''cloneObjects''': true to clone group objects, false to dismiss group objects&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if success, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function aclGroupClone( clonedGroup, groupName, aclsClone, objectsClone )&lt;br /&gt;
	if ( type( clonedGroup ) ~= 'string' ) then &lt;br /&gt;
		error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected string at argument 1, got &amp;quot; .. tostring( clonedGroup ) .. &amp;quot;]&amp;quot; ) return false end&lt;br /&gt;
			if ( aclsClone == true or aclsClone == false ) then &lt;br /&gt;
				if ( objectsClone == true or objectsClone == false ) then &lt;br /&gt;
					local cloned = aclGetGroup( clonedGroup )&lt;br /&gt;
						if ( cloned == false or not cloned ) then&lt;br /&gt;
							outputDebugString( &amp;quot;Bad argument @ 'aclGroupClone' [Expected acl-group at argument 1, got string '&amp;quot; .. tostring( clonedGroup ) .. &amp;quot;']&amp;quot;, 2 ) return false end&lt;br /&gt;
								local newGroup = aclCreateGroup( groupName )&lt;br /&gt;
									if ( newGroup == false or not newGroup ) then&lt;br /&gt;
										outputDebugString( &amp;quot;Bad argument @ 'aclGroupClone' [Expected acl-group at argument 2, got string '&amp;quot; .. tostring( groupName ) .. &amp;quot;']&amp;quot;, 2 ) return false end&lt;br /&gt;
											if ( aclsClone == true ) then&lt;br /&gt;
												for index, value in ipairs( aclGroupListACL( cloned ) ) do&lt;br /&gt;
											aclGroupAddACL( newGroup, value )&lt;br /&gt;
										end&lt;br /&gt;
									end&lt;br /&gt;
								if ( objectsClone == true ) then&lt;br /&gt;
							for index, value in ipairs( aclGroupListObjects( cloned ) ) do&lt;br /&gt;
						aclGroupAddObject( newGroup, value )&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			outputDebugString( &amp;quot;'aclGroupClone' [The group '&amp;quot;..clonedGroup..&amp;quot;' has been cloned successfully to '&amp;quot;..groupName..&amp;quot;' .&amp;quot;, 3 ) return true&lt;br /&gt;
		else error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected boolean at argument 4, got &amp;quot; .. tostring( objectsClone ) .. &amp;quot;]&amp;quot; ) return false&lt;br /&gt;
	end&lt;br /&gt;
	else error( &amp;quot;Bad argument @ 'aclGroupClone' [Expected boolean at argument 3, got &amp;quot; .. tostring( aclsClone ) .. &amp;quot;]&amp;quot; ) return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( 'onResourceStart', resourceRoot,&lt;br /&gt;
function(  )&lt;br /&gt;
	setTimer( aclGroupClone, 1000, 1, 'Console', 'OwnersGroup', true, true ) -- Clone 'Console' Group to 'OwnersGroup' and clone ACLs and objects&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way to clone groups and rights and objects&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47957</id>
		<title>User:Ka1888868</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47957"/>
		<updated>2016-07-02T03:59:08Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* My info for communication : */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Welcome to my profile! ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm '''MR.GRAND''', my real name is &amp;quot;'''Kamel'''&amp;quot;, I'm lua programmer and mods designer .&lt;br /&gt;
&lt;br /&gt;
== My info for communication : ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Facebook''' : https://www.facebook.com/us.luapro&lt;br /&gt;
&lt;br /&gt;
'''Skype''' : kamel1234128&lt;br /&gt;
&lt;br /&gt;
'''E-mail''' : ka1888868@mail.ru  ; or ka1888868@gmail.com ; or mariohammoush@gmail.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''End''' : Your welcome for read my profile info .&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47651</id>
		<title>User:Ka1888868</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47651"/>
		<updated>2016-06-19T03:28:43Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Welcome to my profile! ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm '''MR.GRAND''', my real name is &amp;quot;'''Kamel'''&amp;quot;, I'm lua programmer and mods designer .&lt;br /&gt;
&lt;br /&gt;
== My info for communication : ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Facebook''' : http://fb.com/MR.GRAND0&lt;br /&gt;
&lt;br /&gt;
'''Skype''' : kamel1234128&lt;br /&gt;
&lt;br /&gt;
'''E-mail''' : ka1888868@mail.ru  ; or ka1888868@gmail.com ; or mariohammoush@gmail.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''End''' : Your welcome for read my profile info .&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47650</id>
		<title>User:Ka1888868</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47650"/>
		<updated>2016-06-19T03:28:21Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Welcome to my profile! ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm '''MR.GRAND''', my real name is &amp;quot;'''Kamel'''&amp;quot;, I'm lua programmer and mods designer .&lt;br /&gt;
&lt;br /&gt;
== My info for communication : ==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
'''Facebook''' : http://fb.com/MR.GRAND0&lt;br /&gt;
&lt;br /&gt;
'''Skype''' : http://skype:kamel1234128&lt;br /&gt;
&lt;br /&gt;
'''E-mail''' : ka1888868@mail.ru  ; or ka1888868@gmail.com ; or mariohammoush@gmail.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''End''' : Your welcome for read my profile info .&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47610</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47610"/>
		<updated>2016-06-13T06:07:28Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible( Main_GridList ) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function( )&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47609</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47609"/>
		<updated>2016-06-13T06:06:55Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible( Main_GridList ) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function( )&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47584</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47584"/>
		<updated>2016-06-07T23:06:01Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible( Main_GridList ) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function( )&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47583</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47583"/>
		<updated>2016-06-07T23:05:41Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
'''==Code=='''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible( Main_GridList ) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function( )&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47580</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47580"/>
		<updated>2016-06-05T11:31:55Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible( Main_GridList ) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function( )&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47579</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47579"/>
		<updated>2016-06-05T11:31:04Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible(Main_GridList) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function( )&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=47578</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=47578"/>
		<updated>2016-06-05T05:15:18Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[attachEffect]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you attach an effect to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[bindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to bind each key bound to a control individually. Doing this bypasses a little MTA restriction.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any client-side function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[capitalize]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function capitalizes a given string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function centers a CEGUI window element responsively in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if its arguments are of the right type and calls the error-function if one is not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts and formats large numbers.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertServerTickToTimeStamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts server ticks to a unix timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertTextToSpeech]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts the provided text to a speech in the provided language which players can hear.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function applies a fix for hidden coroutine error messages.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawAnimWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an animated 2D window on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawCircle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a number of 2D lines in order to achieve a circle shape on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawEmptyRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an empty 2D rectangle on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites in 2D.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImageOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an image on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLoading]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a loading bar on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a text on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the font size from given height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function generates a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateRandomASCIIString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a random string which uses ASCII characters. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a given birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayers (Client)|getAlivePlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBanFromName]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This functions returns the ban of the given playername.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBoundControls]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of control names that are bound to the specified key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCurrentFPS]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the frames per second at which GTA: SA is running.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCursorMoveOn]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the specified element's speed in m/s, km/h or mph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsInDimension]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are in the specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsWithinMarker]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are within a marker's collision shape.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getKeyFromValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the key of the specified value in a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all logged-in administrators.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineStaff]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string of all logged-in administrators separated by two whitespace characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxHealth]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a pedestrians's maximum health by converting it from their maximum health stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxOxygenLevel]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's maximum oxygen level by converting it from their maximum underwater stamina stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from partial name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromSerial]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from their serial.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInGroup]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all Players In Group .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerAcls]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all ACL groups on a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersByData]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of players that have the specified data name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all players in photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceScripts]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource scripts.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRGColorFromPercentage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;»This function returns two integers representing red and green colors according to the specified percentage.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenRotationFromWorldPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a screen relative rotation to a world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamFromColor]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element by the specified color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamWithFewestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element with least players of all the specified teams.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the UNIX timestamp of a specified date and time.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getValidVehicleModels]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all valid vehicle models.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehicleRespawnPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get the respawn position of a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehiclesCountByType]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the amount of vehicles by the given type as an integer value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all children of a XML node.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGridListRowIndexFromText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the GridList row index from the specified text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function adjusts a CEGUI combobox element to have the correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetSelectedText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string containing the inner text of a selected gridlist item.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListAddPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function add all online players to a grid list.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCursorOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether the cursor is in a particular area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in the player's camera picture area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if an element's range to a main point is within the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementMoving]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementWithinAColShape]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is within a collision shape element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a boolean representing if a given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a rectangular position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a pedestrian is aiming their weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDrivingVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified pedestrian is driving a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInACL]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element is in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is in a specified team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isSoundFinished]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element has finished.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleEmpty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a vehicle is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOccupied]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is occupied.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAimingNearPed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This is similar to isPedAiming but uses a colshape to be more precise.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isTextInGridList]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if some text exist or not in the GridList.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns ''a time-saving'' iterator for your for-loops.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[mathNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is a workaround for the client-side floating-point precision of 24-bits.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.percent]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a percentage from two number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicle's weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[rangeToTable]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a string range to a table containing number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[refreshResource]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function refreshes your resource if you changed any of the files&lt;br /&gt;
*[[renameAclGroup]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gives an existing ACL group a new name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[secondsToTimeDesc]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a plain seconds-integer into a user-friendly time description.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setAccountName]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is used to change an existing account's name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set the speed of an element in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to create a cinematic camera flight.&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function counts the amount of occurences of a string in a string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.compare]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether two given tables are equal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.empty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a table is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.merge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function merges two or more tables together.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.removeValue]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function removes a specified value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[unbindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to unbind each key bound to a control individually. Use this function with [[bindControlKeys]].&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a physical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47577</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47577"/>
		<updated>2016-06-05T05:14:35Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add all '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible(Main_GridList) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function()&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47576</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47576"/>
		<updated>2016-06-05T04:58:42Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''', false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible(Main_GridList) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function()&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47575</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47575"/>
		<updated>2016-06-05T04:57:38Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return all players in a '''grid list''' if successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible(Main_GridList) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function()&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=47574</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=47574"/>
		<updated>2016-06-05T04:51:43Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[attachEffect]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you attach an effect to an element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[bindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to bind each key bound to a control individually. Doing this bypasses a little MTA restriction.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any client-side function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[capitalize]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function capitalizes a given string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function centers a CEGUI window element responsively in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if its arguments are of the right type and calls the error-function if one is not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts and formats large numbers.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertServerTickToTimeStamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts server ticks to a unix timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertTextToSpeech]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts the provided text to a speech in the provided language which players can hear.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function applies a fix for hidden coroutine error messages.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawAnimWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an animated 2D window on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawCircle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a number of 2D lines in order to achieve a circle shape on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawEmptyRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an empty 2D rectangle on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites in 2D.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImageOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws an image on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawLoading]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a loading bar on the screen.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle in GTA world.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawTextOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a text on any element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the font size from given height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function generates a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[generateRandomASCIIString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a random string which uses ASCII characters. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a given birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayers (Client)|getAlivePlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBanFromName]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This functions returns the ban of the given playername.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getBoundControls]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of control names that are bound to the specified key.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCurrentFPS]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the frames per second at which GTA: SA is running.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCursorMoveOn]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the specified element's speed in m/s, km/h or mph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsInDimension]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are in the specified dimension.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementsWithinMarker]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of elements that are within a marker's collision shape.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getKeyFromValueInTable]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the key of the specified value in a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all logged-in administrators.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineStaff]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string of all logged-in administrators separated by two whitespace characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxHealth]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a pedestrians's maximum health by converting it from their maximum health stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPedMaxOxygenLevel]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a ped's maximum oxygen level by converting it from their maximum underwater stamina stat.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from partial name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromSerial]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a player from their serial.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInGroup]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all Players In Group .&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerAcls]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all ACL groups on a player.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersByData]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of players that have the specified data name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all players in photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceScripts]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource scripts.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getRGColorFromPercentage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia', sans-serif; font-size:smaller;&amp;quot;&amp;gt;»This function returns two integers representing red and green colors according to the specified percentage.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getScreenRotationFromWorldPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a screen relative rotation to a world position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamFromColor]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element by the specified color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTeamWithFewestPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a team element with least players of all the specified teams.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the UNIX timestamp of a specified date and time.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getValidVehicleModels]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of all valid vehicle models.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehicleRespawnPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get the respawn position of a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehiclesCountByType]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the amount of vehicles by the given type as an integer value.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all children of a XML node.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getGridListRowIndexFromText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the GridList row index from the specified text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function adjusts a CEGUI combobox element to have the correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListGetSelectedText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string containing the inner text of a selected gridlist item.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiGridListAddPlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function add online players to a grid list.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isCursorOnElement]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether the cursor is in a particular area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is in the player's camera picture area.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check if an element's range to a main point is within the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementMoving]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementWithinAColShape]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is within a collision shape element.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a boolean representing if a given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isMouseInPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check whether the mouse cursor/pointer is within a rectangular position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a pedestrian is aiming their weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedDrivingVehicle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified pedestrian is driving a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInACL]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player element is in an ACL group.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a player is in a specified team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isSoundFinished]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a sound element has finished.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleEmpty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a vehicle is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOccupied]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a specified vehicle is occupied.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAimingNearPed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This is similar to isPedAiming but uses a colshape to be more precise.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isTextInGridList]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if some text exist or not in the GridList.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns ''a time-saving'' iterator for your for-loops.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[mathNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is a workaround for the client-side floating-point precision of 24-bits.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.percent]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a percentage from two number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicle's weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[rangeToTable]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a string range to a table containing number values.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[refreshResource]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function refreshes your resource if you changed any of the files&lt;br /&gt;
*[[renameAclGroup]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gives an existing ACL group a new name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[secondsToTimeDesc]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a plain seconds-integer into a user-friendly time description.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setAccountName]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is used to change an existing account's name.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set the speed of an element in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to create a cinematic camera flight.&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function counts the amount of occurences of a string in a string.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.compare]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether two given tables are equal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.empty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether a table is empty.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.merge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function merges two or more tables together.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.removeValue]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function removes a specified value from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used client-side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[unbindControlKeys]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to unbind each key bound to a control individually. Use this function with [[bindControlKeys]].&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a physical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47573</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47573"/>
		<updated>2016-06-05T04:32:46Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible(Main_GridList) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function()&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47572</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47572"/>
		<updated>2016-06-05T04:25:57Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
	-- Grid list &lt;br /&gt;
	local screenW, screenH = guiGetScreenSize()&lt;br /&gt;
	Main_GridList = guiCreateGridList((screenW - 233) / 2, (screenH - 357) / 2, 233, 357, false)&lt;br /&gt;
	guiGridListAddColumn(Main_GridList, &amp;quot;Players&amp;quot;, 0.9)&lt;br /&gt;
	guiSetVisible( Main_GridList, false )&lt;br /&gt;
&lt;br /&gt;
	-- For show Grid List&lt;br /&gt;
bindKey( &amp;quot;F10&amp;quot;, &amp;quot;down&amp;quot;, function( )&lt;br /&gt;
	guiSetVisible( Main_GridList, not guiGetVisible(Main_GridList) )&lt;br /&gt;
	showCursor( not isCursorShowing( ) )&lt;br /&gt;
end )&lt;br /&gt;
&lt;br /&gt;
	-- This command add all players to a grid list&lt;br /&gt;
addCommandHandler( &amp;quot;addPlayers&amp;quot;, function()&lt;br /&gt;
	guiGridListAddPlayers( Main_GridList, 1, false, false )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47571</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47571"/>
		<updated>2016-06-05T01:33:12Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Return true if successful, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47570</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47570"/>
		<updated>2016-06-05T01:14:07Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47569</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47569"/>
		<updated>2016-06-05T01:13:25Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47568</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47568"/>
		<updated>2016-06-05T01:10:59Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47567</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47567"/>
		<updated>2016-06-05T01:10:26Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47566</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47566"/>
		<updated>2016-06-05T01:09:46Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;[lua]&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47565</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47565"/>
		<updated>2016-06-05T01:08:54Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;Client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47564</id>
		<title>GuiGridListAddPlayers</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddPlayers&amp;diff=47564"/>
		<updated>2016-06-05T00:25:43Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: This function is Shortcut way Add to the grid list of players.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function add '''online''' players to a '''grid list'''.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool guiGridListAddPlayers ( element gridList, int columnIndex, bool section, bool number )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''gridList''': The grid list element&lt;br /&gt;
* '''columnIndex''': Column ID&lt;br /&gt;
* '''section''': Determines if the item is a section&lt;br /&gt;
* '''number''': Tells whether the text item is a number value or not (used for sorting)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns all players in a grid list, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function guiGridListAddPlayers( GridList, Column, Section, Number )&lt;br /&gt;
	if( getElementType( GridList ) == &amp;quot;gui-gridlist&amp;quot; ) then&lt;br /&gt;
	assert( tonumber( Column ), &amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected number at argument 2, got &amp;quot; .. tostring(Column) .. &amp;quot;]&amp;quot; )&lt;br /&gt;
		if( Section == false or Section == true ) then&lt;br /&gt;
			if( Number == false or Number == true ) then&lt;br /&gt;
				for _, player in ipairs( getElementsByType('player') ) do&lt;br /&gt;
					guiGridListClear( GridList )&lt;br /&gt;
						local Row = guiGridListAddRow( GridList )&lt;br /&gt;
						guiGridListSetItemText( GridList, Row, Column, getPlayerName(player), Section, Number )&lt;br /&gt;
						end &lt;br /&gt;
					else&lt;br /&gt;
					error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 4, got &amp;quot; .. tostring(Number) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
				end&lt;br /&gt;
			else&lt;br /&gt;
			error(&amp;quot;Bad argument @ 'guiGridListAddPlayers' [Expected boolean at argument 3, got &amp;quot; .. tostring(Section) .. &amp;quot;]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example add all '''online players''' in the server to a '''grid list'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiGridListAddPlayers( GUIEditor.gridlist[1], 1, false, false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Author''': MR.GRAND&lt;br /&gt;
&lt;br /&gt;
'''Hint''': This function can be useful, Shortcut way Add to the grid list of players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47563</id>
		<title>User:Ka1888868</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Ka1888868&amp;diff=47563"/>
		<updated>2016-06-04T22:30:41Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: Created page with &amp;quot;'''MR.GRAND ; lua scriper '''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MR.GRAND ; lua scriper&lt;br /&gt;
'''&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Ka1888868&amp;diff=47562</id>
		<title>User talk:Ka1888868</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Ka1888868&amp;diff=47562"/>
		<updated>2016-06-04T22:29:32Z</updated>

		<summary type="html">&lt;p&gt;Ka1888868: Created page with &amp;quot;'''Hello ; just i'm lua scripter :)  == MR.GRAND == end ;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Hello ; just i'm lua scripter :) &lt;br /&gt;
== MR.GRAND ==&lt;br /&gt;
end ;&lt;/div&gt;</summary>
		<author><name>Ka1888868</name></author>
	</entry>
</feed>