<?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=Bonus</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=Bonus"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Bonus"/>
	<updated>2026-04-24T00:27:53Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OOP_server&amp;diff=55557</id>
		<title>OOP server</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OOP_server&amp;diff=55557"/>
		<updated>2018-07-01T22:58:40Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Add account functions&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 [[Server_Scripting_Functions|server-side functions]].&lt;br /&gt;
&lt;br /&gt;
''See also: [[OOP]]''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Element==&lt;br /&gt;
 areCollisionsEnabled (function: [[getElementCollisionsEnabled]])&lt;br /&gt;
 attach (function: [[attachElements]])&lt;br /&gt;
 clearVisibility (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;
 getAllData (function: [[getAllElementData]])&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;
 getByID (function: [[getElementByID]])&lt;br /&gt;
 getByIndex (function: [[getElementByIndex]])&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;
 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;
 getPosition (function: [[getElementPosition]])&lt;br /&gt;
 getRotation (function: [[getElementRotation]])&lt;br /&gt;
 getSyncer (function: [[getElementSyncer]])&lt;br /&gt;
 getType (function: [[getElementType]])&lt;br /&gt;
 getVelocity (function: [[getElementVelocity]])&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;
 setMatrix (function: [[setElementMatrix]])&lt;br /&gt;
 setModel (function: [[setElementModel]])&lt;br /&gt;
 setParent (function: [[setElementParent]])&lt;br /&gt;
 setPosition (function: [[setElementPosition]])&lt;br /&gt;
 setRotation (function: [[setElementRotation]])&lt;br /&gt;
 setSyncer (function: [[setElementSyncer]])&lt;br /&gt;
 setVelocity (function: [[setElementVelocity]])&lt;br /&gt;
&lt;br /&gt;
==ACL==&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[aclCreate]])&lt;br /&gt;
 destroy (function: [[aclDestroy]])&lt;br /&gt;
 get (function: [[aclGet]])&lt;br /&gt;
 getName (function: [[aclGetName]])&lt;br /&gt;
 getRight (function: [[aclGetRight]])&lt;br /&gt;
 hasObjectPermissionTo (function: [[hasObjectPermissionTo]])&lt;br /&gt;
 list (function: [[aclList]])&lt;br /&gt;
 listRights (function: [[aclListRights]])&lt;br /&gt;
 reload (function: [[aclReload]])&lt;br /&gt;
 removeRight (function: [[aclRemoveRight]])&lt;br /&gt;
 save (function: [[aclSave]])&lt;br /&gt;
 setRight (function: [[aclSetRight]])&lt;br /&gt;
&lt;br /&gt;
==ACLGroup==&lt;br /&gt;
 &lt;br /&gt;
 addACL (function: [[aclGroupAddACL]])&lt;br /&gt;
 addObject (function: [[aclGroupAddObject]])&lt;br /&gt;
 addToGroup (function: [[aclGroupAddACL]])&lt;br /&gt;
 create (function: [[aclCreateGroup]])&lt;br /&gt;
 destroy (function: [[aclDestroyGroup]])&lt;br /&gt;
 doesContainObject (function: [[isObjectInACLGroup]])&lt;br /&gt;
 get (function: [[aclGetGroup]])&lt;br /&gt;
 getName (function: [[aclGroupGetName]])&lt;br /&gt;
 list (function: [[aclGroupList]])&lt;br /&gt;
 listACL (function: [[aclGroupListACL]])&lt;br /&gt;
 listObjects (function: [[aclGroupListObjects]])&lt;br /&gt;
 removeACL (function: [[aclGroupRemoveACL]])&lt;br /&gt;
 removeFromGroup (function: [[aclGroupRemoveACL]])&lt;br /&gt;
 removeObject (function: [[aclGroupRemoveObject]])&lt;br /&gt;
&lt;br /&gt;
==Account==&lt;br /&gt;
 &lt;br /&gt;
 add (function: [[addAccount]])&lt;br /&gt;
 copyDataTo (function: [[copyAccountData]])&lt;br /&gt;
 getData (function: [[getAccountData]])&lt;br /&gt;
 getID (function: [[getAccountID]])&lt;br /&gt;
 getIP (function: [[getAccountIP]])&lt;br /&gt;
 getName (function: [[getAccountName]])&lt;br /&gt;
 getPlayer (function: [[getAccountPlayer]])&lt;br /&gt;
 getAllByData (function: [[getAccountsByData]])&lt;br /&gt;
 getAllByIP (function: [[getAccountsByIP]])&lt;br /&gt;
 getAllBySerial (function: [[getAccountsBySerial]])&lt;br /&gt;
 getSerial (function: [[getAccountSerial]])&lt;br /&gt;
 getAll (function: [[getAccounts]])&lt;br /&gt;
 create (function: [[getAccount]])&lt;br /&gt;
 getAllData (function: [[getAllAccountData]])&lt;br /&gt;
 getAccount (function: [[getPlayerAccount]])&lt;br /&gt;
 isGuest (function: [[isGuestAccount]])&lt;br /&gt;
 logIn (function: [[logIn]])&lt;br /&gt;
 logOut (function: [[logOut]])&lt;br /&gt;
 remove (function: [[removeAccount]])&lt;br /&gt;
 setData (function: [[setAccountData]])&lt;br /&gt;
 setName (function: [[setAccountName]])&lt;br /&gt;
 setPassword (function: [[setAccountPassword]])&lt;br /&gt;
&lt;br /&gt;
==Ban==&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[addBan]])&lt;br /&gt;
 getAdmin (function: [[getBanAdmin]])&lt;br /&gt;
 getIP (function: [[getBanIP]])&lt;br /&gt;
 getList (function: [[getBans]])&lt;br /&gt;
 getNick (function: [[getBanNick]])&lt;br /&gt;
 getReason (function: [[getBanReason]])&lt;br /&gt;
 getSerial (function: [[getBanSerial]])&lt;br /&gt;
 getTime (function: [[getBanTime]])&lt;br /&gt;
 getUnbanTime (function: [[getUnbanTime]])&lt;br /&gt;
 remove (function: [[removeBan]])&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;
==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;
==File==&lt;br /&gt;
 &lt;br /&gt;
 close (function: [[fileClose]])&lt;br /&gt;
 copy (function: [[fileCopy]])&lt;br /&gt;
 create (function: [[fileOpen]])&lt;br /&gt;
 delete (function: [[fileDelete]])&lt;br /&gt;
 destroy (function: [[fileClose]])&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;
 new (function: [[fileCreate]])&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;
&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;
==Object==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
&lt;br /&gt;
 create (function: [[createObject]])&lt;br /&gt;
 getScale (function: [[getObjectScale]])&lt;br /&gt;
 move (function: [[moveObject]])&lt;br /&gt;
 setScale (function: [[setObjectScale]])&lt;br /&gt;
 stop (function: [[stopObject]])&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;
 create (function: [[createPed]])&lt;br /&gt;
 doesHaveJetpack (function: [[doesPedHaveJetPack]])&lt;br /&gt;
 getAmmoInClip (function: [[getPedAmmoInClip]])&lt;br /&gt;
 getAnalogControlState (function: [[getPedAnalogControlState]])&lt;br /&gt;
 getArmor (function: [[getPedArmor]])&lt;br /&gt;
 getClothes (function: [[getPedClothes]])&lt;br /&gt;
 getContactElement (function: [[getPedContactElement]])&lt;br /&gt;
 getFightingStyle (function: [[getPedFightingStyle]])&lt;br /&gt;
 getGravity (function: [[getPedGravity]])&lt;br /&gt;
 getOccupiedVehicle (function: [[getPedOccupiedVehicle]])&lt;br /&gt;
 getOccupiedVehicleSeat (function: [[getPedOccupiedVehicleSeat]])&lt;br /&gt;
 getStat (function: [[getPedStat]])&lt;br /&gt;
 getTarget (function: [[getPedTarget]])&lt;br /&gt;
 getTotalAmmo (function: [[getPedTotalAmmo]])&lt;br /&gt;
 getValidModels (function: [[getValidPedModels]])&lt;br /&gt;
 getWalkingStyle (function: [[getPedWalkingStyle]])&lt;br /&gt;
 getWeapon (function: [[getPedWeapon]])&lt;br /&gt;
 getWeaponSlot (function: [[getPedWeaponSlot]])&lt;br /&gt;
 giveJetPack (function: [[givePedJetPack]])&lt;br /&gt;
 isChoking (function: [[isPedChoking]])&lt;br /&gt;
 isDead (function: [[isPedDead]])&lt;br /&gt;
 isDoingGangDriveby (function: [[isPedDoingGangDriveby]])&lt;br /&gt;
 isDucked (function: [[isPedDucked]])&lt;br /&gt;
 isFrozen (function: [[isPedFrozen]])&lt;br /&gt;
 isHeadless (function: [[isPedHeadless]])&lt;br /&gt;
 isInVehicle (function: [[isPedInVehicle]])&lt;br /&gt;
 isInWater (function: [[isPedInWater]])&lt;br /&gt;
 isOnFire (function: [[isPedOnFire]])&lt;br /&gt;
 isOnGround (function: [[isPedOnGround]])&lt;br /&gt;
 kill (function: [[killPed]])&lt;br /&gt;
 reloadWeapon (function: [[reloadPedWeapon]])&lt;br /&gt;
 removeClothes (function: [[removePedClothes]])&lt;br /&gt;
 removeFromVehicle (function: [[removePedFromVehicle]])&lt;br /&gt;
 removeJetPack (function: [[removePedJetPack]])&lt;br /&gt;
 setAnalogControlState (function: [[setPedAnalogControlState]])&lt;br /&gt;
 setAnimation (function: [[setPedAnimation]])&lt;br /&gt;
 setAnimationProgress (function: [[setPedAnimationProgress]])&lt;br /&gt;
 setArmor (function: [[setPedArmor]])&lt;br /&gt;
 setChoking (function: [[setPedChoking]])&lt;br /&gt;
 setDoingGangDriveBy (function: [[setPedDoingGangDriveby]])&lt;br /&gt;
 setFightingStyle (function: [[setPedFightingStyle]])&lt;br /&gt;
 setFrozen (function: [[setPedFrozen]])&lt;br /&gt;
 setGravity (function: [[setPedGravity]])&lt;br /&gt;
 setHeadless (function: [[setPedHeadless]])&lt;br /&gt;
 setOnFire (function: [[setPedOnFire]])&lt;br /&gt;
 setStat (function: [[setPedStat]])&lt;br /&gt;
 setWalkingStyle (function: [[setPedWalkingStyle]])&lt;br /&gt;
 setWeaponSlot (function: [[setPedWeaponSlot]])&lt;br /&gt;
 warpIntoVehicle (function: [[warpPedIntoVehicle]])&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;
 getRespawnInterval (function: [[getPickupRespawnInterval]])&lt;br /&gt;
 getType (function: [[getPickupType]])&lt;br /&gt;
 getWeapon (function: [[getPickupWeapon]])&lt;br /&gt;
 setRespawnInterval (function: [[setPickupRespawnInterval]])&lt;br /&gt;
 setType (function: [[setPickupType]])&lt;br /&gt;
 use (function: [[usePickup]])&lt;br /&gt;
&lt;br /&gt;
==Player==&lt;br /&gt;
''Inherited from [[#Ped|Ped]]''&lt;br /&gt;
&lt;br /&gt;
 ban (function: [[banPlayer]])&lt;br /&gt;
 create (function: [[getPlayerFromName]])&lt;br /&gt;
 forceMap (function: [[forcePlayerMap]])&lt;br /&gt;
 getAccount (function: [[getPlayerAccount]])&lt;br /&gt;
 getACInfo (function: [[getPlayerACInfo]])&lt;br /&gt;
 getAllAlive (function: [[getAlivePlayers]])&lt;br /&gt;
 getAllDead (function: [[getDeadPlayers]])&lt;br /&gt;
 getAnnounceValue (function: [[getPlayerAnnounceValue]])&lt;br /&gt;
 getBlurLevel (function: [[getPlayerBlurLevel]])&lt;br /&gt;
 getCount (function: [[getPlayerCount]])&lt;br /&gt;
 getIdleTime (function: [[getPlayerIdleTime]])&lt;br /&gt;
 getIP (function: [[getPlayerIP]])&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;
 getRandom (function: [[getRandomPlayer]])&lt;br /&gt;
 getSerial (function: [[getPlayerSerial]])&lt;br /&gt;
 getTeam (function: [[getPlayerTeam]])&lt;br /&gt;
 getVersion (function: [[getPlayerVersion]])&lt;br /&gt;
 getWantedLevel (function: [[getPlayerWantedLevel]])&lt;br /&gt;
 giveMoney (function: [[givePlayerMoney]])&lt;br /&gt;
 isMapForced (function: [[isPlayerMapForced]])&lt;br /&gt;
 isMuted (function: [[isPlayerMuted]])&lt;br /&gt;
 isNametagShowing (function: [[isPlayerNametagShowing]])&lt;br /&gt;
 isObservingDisplay (function: [[textDisplayIsObserver]])&lt;br /&gt;
 isVoiceEnabled (function: [[isVoiceEnabled]])&lt;br /&gt;
 kick (function: [[kickPlayer]])&lt;br /&gt;
 logOut (function: [[logOut]])&lt;br /&gt;
 observeDisplay (function: [[textDisplayAddObserver]])&lt;br /&gt;
 redirect (function: [[redirectPlayer]])&lt;br /&gt;
 resendModInfo (function: [[resendPlayerModInfo]])&lt;br /&gt;
 setAnnounceValue (function: [[setPlayerAnnounceValue]])&lt;br /&gt;
 setBlurLevel (function: [[setPlayerBlurLevel]])&lt;br /&gt;
 setHudComponentVisible (function: [[setPlayerHudComponentVisible]])&lt;br /&gt;
 setMoney (function: [[setPlayerMoney]])&lt;br /&gt;
 setMuted (function: [[setPlayerMuted]])&lt;br /&gt;
 setName (function: [[setPlayerName]])&lt;br /&gt;
 setNametagColor (function: [[setPlayerNametagColor]])&lt;br /&gt;
 setNametagShowing (function: [[setPlayerNametagShowing]])&lt;br /&gt;
 setNametagText (function: [[setPlayerNametagText]])&lt;br /&gt;
 setTeam (function: [[setPlayerTeam]])&lt;br /&gt;
 setVoiceBroadcastTo (function: [[setPlayerVoiceBroadcastTo]])&lt;br /&gt;
 setVoiceIgnoreFrom (function: [[setPlayerVoiceIgnoreFrom]])&lt;br /&gt;
 setWantedLevel (function: [[setPlayerWantedLevel]])&lt;br /&gt;
 showHudComponent (function: [[showPlayerHudComponent]])&lt;br /&gt;
 spawn (function: [[spawnPlayer]])&lt;br /&gt;
 stopObservingDisplay (function: [[textDisplayRemoveObserver]])&lt;br /&gt;
 takeMoney (function: [[takePlayerMoney]])&lt;br /&gt;
 takeScreenshot (function: [[takePlayerScreenShot]])&lt;br /&gt;
 triggerEvent (function: [[triggerClientEvent]])&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;
==Resource==&lt;br /&gt;
 call (function: [[call]])&lt;br /&gt;
 copy (function: [[copyResource]])&lt;br /&gt;
 create (function: [[createResource]])&lt;br /&gt;
 getDynamicElementRoot (function: [[getResourceDynamicElementRoot]])&lt;br /&gt;
 getFromName (function: [[getResourceFromName]])&lt;br /&gt;
 getInfo (function: [[getResourceInfo]])&lt;br /&gt;
 getMapRootElement (function: [[getResourceMapRootElement]])&lt;br /&gt;
 getName (function: [[getResourceName]])&lt;br /&gt;
 getRootElement (function: [[getResourceRootElement]])&lt;br /&gt;
 getState (function: [[getResourceState]])&lt;br /&gt;
 removeFile (function: [[removeResourceFile]])&lt;br /&gt;
 restart (function: [[restartResource]])&lt;br /&gt;
 start (function: [[startResource]])&lt;br /&gt;
 stop (function: [[stopResource]])&lt;br /&gt;
 setInfo (function: [[setResourceInfo]])&lt;br /&gt;
 rename (function: [[renameResource]])&lt;br /&gt;
 delete (function: [[deleteResource]])&lt;br /&gt;
&lt;br /&gt;
==Connection==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[dbConnect]])&lt;br /&gt;
 exec (function: [[dbExec]])&lt;br /&gt;
 query (function: [[dbQuery]])&lt;br /&gt;
&lt;br /&gt;
==QueryHandle==&lt;br /&gt;
 &lt;br /&gt;
 free (function: [[dbFree]])&lt;br /&gt;
 poll (function: [[dbPoll]])&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: [[createTeam]])&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;
 getPlayers (function: [[getPlayersInTeam]])&lt;br /&gt;
 setColor (function: [[setTeamColor]])&lt;br /&gt;
 setFriendlyFire (function: [[setTeamFriendlyFire]])&lt;br /&gt;
 setName (function: [[setTeamName]])&lt;br /&gt;
&lt;br /&gt;
==TextDisplay==&lt;br /&gt;
 &lt;br /&gt;
 addObserver (function: [[textDisplayAddObserver]])&lt;br /&gt;
 addText (function: [[textDisplayAddText]])&lt;br /&gt;
 create (function: [[textCreateDisplay]])&lt;br /&gt;
 destroy (function: [[textDestroyDisplay]])&lt;br /&gt;
 getObservers (function: [[textDisplayGetObservers]])&lt;br /&gt;
 isObserver (function: [[textDisplayIsObserver]])&lt;br /&gt;
 removeObserver (function: [[textDisplayRemoveObserver]])&lt;br /&gt;
 removeText (function: [[textDisplayRemoveText]])&lt;br /&gt;
&lt;br /&gt;
==TextItem==&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[textCreateTextItem]])&lt;br /&gt;
 destroy (function: [[textDestroyTextItem]])&lt;br /&gt;
 getColor (function: [[textItemGetColor]])&lt;br /&gt;
 getPosition (function: [[textItemGetPosition]])&lt;br /&gt;
 getPriority (function: [[textItemGetPriority]])&lt;br /&gt;
 getScale (function: [[textItemGetScale]])&lt;br /&gt;
 getText (function: [[textItemGetText]])&lt;br /&gt;
 setColor (function: [[textItemSetColor]])&lt;br /&gt;
 setPosition (function: [[textItemSetPosition]])&lt;br /&gt;
 setPriority (function: [[textItemSetPriority]])&lt;br /&gt;
 setScale (function: [[textItemSetScale]])&lt;br /&gt;
 setText (function: [[textItemSetText]])&lt;br /&gt;
&lt;br /&gt;
==Vehicle==&lt;br /&gt;
''Inherited from [[#Element|Element]]''&lt;br /&gt;
 &lt;br /&gt;
 addSirens (function: [[addVehicleSirens]])&lt;br /&gt;
 addUpgrade (function: [[addVehicleUpgrade]])&lt;br /&gt;
 areSirensOn (function: [[getVehicleSirensOn]])&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;
 getAllOfType (function: [[getVehiclesOfType]])&lt;br /&gt;
 getColor (function: [[getVehicleColor]])&lt;br /&gt;
 getCompatibleUpgrades (function: [[getVehicleCompatibleUpgrades]])&lt;br /&gt;
 getController (function: [[getVehicleController]])&lt;br /&gt;
 getDirection (function: [[getTrainDirection]])&lt;br /&gt;
 getDoorOpenRatio (function: [[getVehicleDoorOpenRatio]])&lt;br /&gt;
 getDoorState (function: [[getVehicleDoorState]])&lt;br /&gt;
 getEngineState (function: [[getVehicleEngineState]])&lt;br /&gt;
 getHandling (function: [[getVehicleHandling]])&lt;br /&gt;
 getHeadLightColor (function: [[getVehicleHeadLightColor]])&lt;br /&gt;
 getLandingGearDown (function: [[getVehicleLandingGearDown]])&lt;br /&gt;
 getLightState (function: [[getVehicleLightState]])&lt;br /&gt;
 getMaxPassengers (function: [[getVehicleMaxPassengers]])&lt;br /&gt;
 getModelFromName (function: [[getVehicleModelFromName]])&lt;br /&gt;
 getModelHandling (function: [[getModelHandling]])&lt;br /&gt;
 getName (function: [[getVehicleName]])&lt;br /&gt;
 getNameFromModel (function: [[getVehicleNameFromModel]])&lt;br /&gt;
 getOccupant (function: [[getVehicleOccupant]])&lt;br /&gt;
 getOccupants (function: [[getVehicleOccupants]])&lt;br /&gt;
 getOriginalHandling (function: [[getOriginalHandling]])&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;
 getSirenParams (function: [[getVehicleSirenParams]])&lt;br /&gt;
 getSirens (function: [[getVehicleSirens]])&lt;br /&gt;
 getSpeed (function: [[getTrainSpeed]])&lt;br /&gt;
 getTowedByVehicle (function: [[getVehicleTowedByVehicle]])&lt;br /&gt;
 getTowingVehicle (function: [[getVehicleTowingVehicle]])&lt;br /&gt;
 getTurnVelocity (function: [[getVehicleTurnVelocity]])&lt;br /&gt;
 getTurretPosition (function: [[getVehicleTurretPosition]])&lt;br /&gt;
 getUpgradeOnSlot (function: [[getVehicleUpgradeOnSlot]])&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;
 isDerailable (function: [[isTrainDerailable]])&lt;br /&gt;
 isDerailed (function: [[isTrainDerailed]])&lt;br /&gt;
 isFuelTankExplodable (function: [[isVehicleFuelTankExplodable]])&lt;br /&gt;
 isLocked (function: [[isVehicleLocked]])&lt;br /&gt;
 isOnGround (function: [[isVehicleOnGround]])&lt;br /&gt;
 isTaxiLightOn (function: [[isVehicleTaxiLightOn]])&lt;br /&gt;
 removeSirens (function: [[removeVehicleSirens]])&lt;br /&gt;
 removeUpgrade (function: [[removeVehicleUpgrade]])&lt;br /&gt;
 resetExplosionTime (function: [[resetVehicleExplosionTime]])&lt;br /&gt;
 resetIdleTime (function: [[resetVehicleIdleTime]])&lt;br /&gt;
 respawn (function: [[respawnVehicle]])&lt;br /&gt;
 setColor (function: [[setVehicleColor]])&lt;br /&gt;
 setDamageProof (function: [[setVehicleDamageProof]])&lt;br /&gt;
 setDerailable (function: [[setTrainDerailable]])&lt;br /&gt;
 setDerailed (function: [[setTrainDerailed]])&lt;br /&gt;
 setDirection (function: [[setTrainDirection]])&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;
 setHandling (function: [[setVehicleHandling]])&lt;br /&gt;
 setHeadLightColor (function: [[setVehicleHeadLightColor]])&lt;br /&gt;
 setIdleRespawnDelay (function: [[setVehicleIdleRespawnDelay]])&lt;br /&gt;
 setLandingGearDown (function: [[setVehicleLandingGearDown]])&lt;br /&gt;
 setLightState (function: [[setVehicleLightState]])&lt;br /&gt;
 setLocked (function: [[setVehicleLocked]])&lt;br /&gt;
 setModelHandling (function: [[setModelHandling]])&lt;br /&gt;
 setOverrideLights (function: [[setVehicleOverrideLights]])&lt;br /&gt;
 setPaintJob (function: [[setVehiclePaintjob]])&lt;br /&gt;
 setPanelState (function: [[setVehiclePanelState]])&lt;br /&gt;
 setPlateText (function: [[setVehiclePlateText]])&lt;br /&gt;
 setRespawnDelay (function: [[setVehicleRespawnDelay]])&lt;br /&gt;
 setRespawnPosition (function: [[setVehicleRespawnPosition]])&lt;br /&gt;
 setSirens (function: [[setVehicleSirens]])&lt;br /&gt;
 setSirensOn (function: [[setVehicleSirensOn]])&lt;br /&gt;
 setSpeed (function: [[setTrainSpeed]])&lt;br /&gt;
 setTaxiLightOn (function: [[setVehicleTaxiLightOn]])&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;
 spawn (function: [[spawnVehicle]])&lt;br /&gt;
 toggleRespawn (function: [[toggleVehicleRespawn]])&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;
 getVertexPosition (function: [[getWaterVertexPosition]])&lt;br /&gt;
 getWaveHeight (function: [[getWaveHeight]])&lt;br /&gt;
 resetColor (function: [[resetWaterColor]])&lt;br /&gt;
 resetLevel (function: [[resetWaterLevel]])&lt;br /&gt;
 setColor (function: [[setWaterColor]])&lt;br /&gt;
 setLevel (function: [[setWaterLevel]])&lt;br /&gt;
 setVertexPosition (function: [[setWaterVertexPosition]])&lt;br /&gt;
 setWaveHeight (function: [[setWaveHeight]])&lt;br /&gt;
&lt;br /&gt;
==XML==&lt;br /&gt;
 &lt;br /&gt;
 copy (function: [[xmlCopyFile]])&lt;br /&gt;
 create (function: [[xmlCreateFile]])&lt;br /&gt;
 createChild (function: [[xmlCreateChild]])&lt;br /&gt;
 destroy (function: [[xmlDestroyNode]])&lt;br /&gt;
 findChild (function: [[xmlFindChild]])&lt;br /&gt;
 getAttribute (function: [[xmlNodeGetAttribute]])&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;
 load (function: [[xmlLoadFile]])&lt;br /&gt;
 loadMapData (function: [[loadMapData]])&lt;br /&gt;
 saveFile (function: [[xmlSaveFile]])&lt;br /&gt;
 saveMapData (function: [[saveMapData]])&lt;br /&gt;
 setAttribute (function: [[xmlNodeSetAttribute]])&lt;br /&gt;
 setName (function: [[xmlNodeSetName]])&lt;br /&gt;
 setValue (function: [[xmlNodeGetValue]])&lt;br /&gt;
 setValue (function: [[xmlNodeSetValue]])&lt;br /&gt;
 unload (function: [[xmlUnloadFile]])&lt;br /&gt;
&lt;br /&gt;
==Timer==&lt;br /&gt;
 &lt;br /&gt;
 create (function: [[setTimer]])&lt;br /&gt;
 destroy (function: [[killTimer]])&lt;br /&gt;
 getDetails (function: [[getTimerDetails]])&lt;br /&gt;
 isValid (function: [[isTimer]])&lt;br /&gt;
 reset (function: [[resetTimer]])&lt;br /&gt;
&lt;br /&gt;
[[Category:OOP]]&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_events&amp;diff=55555</id>
		<title>Template:Player events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_events&amp;diff=55555"/>
		<updated>2018-07-01T22:55:15Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[onPlayerACInfo]]&lt;br /&gt;
*[[onPlayerBan]]&lt;br /&gt;
*[[onPlayerChangeNick]]&lt;br /&gt;
*[[onPlayerChat]]&lt;br /&gt;
*[[onPlayerClick]]&lt;br /&gt;
*[[onPlayerCommand]]&lt;br /&gt;
*[[onPlayerConnect]]&lt;br /&gt;
*[[onPlayerContact]]&lt;br /&gt;
*[[onPlayerDamage]]&lt;br /&gt;
*[[onPlayerJoin]]&lt;br /&gt;
*[[onPlayerLogin]]&lt;br /&gt;
*[[onPlayerLogout]]&lt;br /&gt;
*[[onPlayerMarkerHit]]&lt;br /&gt;
*[[onPlayerMarkerLeave]]&lt;br /&gt;
*[[onPlayerModInfo]]&lt;br /&gt;
*[[onPlayerMute]]&lt;br /&gt;
*[[onPlayerNetworkStatus]]&lt;br /&gt;
*[[onPlayerPickupHit]]&lt;br /&gt;
*[[onPlayerPickupLeave]]&lt;br /&gt;
*[[onPlayerPickupUse]]&lt;br /&gt;
*[[onPlayerPrivateMessage]]&lt;br /&gt;
*[[onPlayerQuit]]&lt;br /&gt;
*[[onPlayerScreenShot]]&lt;br /&gt;
*[[onPlayerSpawn]]&lt;br /&gt;
*[[onPlayerStealthKill]]&lt;br /&gt;
*[[onPlayerTarget]]&lt;br /&gt;
*[[onPlayerUnmute]]&lt;br /&gt;
*[[onPlayerVehicleEnter]]&lt;br /&gt;
*[[onPlayerVehicleExit]]&lt;br /&gt;
*[[onPlayerVoiceStart]]&lt;br /&gt;
*[[onPlayerVoiceStop]]&lt;br /&gt;
*[[onPlayerWasted]]&lt;br /&gt;
*[[onPlayerWeaponFire]]&lt;br /&gt;
*[[onPlayerWeaponSwitch]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Events templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Pickup_events&amp;diff=55554</id>
		<title>Template:Pickup events</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Pickup_events&amp;diff=55554"/>
		<updated>2018-07-01T22:54:59Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[onPickupHit]]&lt;br /&gt;
*[[onPickupLeave]]&lt;br /&gt;
*[[onPickupSpawn]]&lt;br /&gt;
*[[onPickupUse]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Events templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55550</id>
		<title>SetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55550"/>
		<updated>2018-07-01T22:52:32Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11747|&lt;br /&gt;
This function sets the name of an [[account]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountName ( account theAccount, string name [, bool allowCaseVariations = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:setName||name}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to change the name.&lt;br /&gt;
*'''name:''' The new name.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''allowCaseVariations:''' Whether the username is case sensitive (if this is set to true, usernames &amp;quot;Bob&amp;quot; and &amp;quot;bob&amp;quot; will refer to different accounts)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account name was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Change the name of an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;changeaccountname&amp;quot;, function(player, _, oldname, newname)&lt;br /&gt;
    if not oldname or not newname then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local account = getAccount(oldname)&lt;br /&gt;
    if not account then&lt;br /&gt;
        return &lt;br /&gt;
    end&lt;br /&gt;
    setAccountName(account, newname)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55549</id>
		<title>GetAccountsByIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55549"/>
		<updated>2018-07-01T22:52:00Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11747|&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified IP-address.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByIP ( string ip )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByIP||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ip:''' The IP to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified IP-address. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local ip = getPlayerIP(player)&lt;br /&gt;
		local accounts = getAccountsByIP(ip)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55548</id>
		<title>GetAccountsByData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55548"/>
		<updated>2018-07-01T22:51:25Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11747|&lt;br /&gt;
This function returns a [[table]] containing all accounts with specified dataName and value (set with setAccountData).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByData ( string dataName, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByData||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dataName:''' The name of the data&lt;br /&gt;
*'''value:''' The value the dataName should have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified value at dataName. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Useless example to show how it works.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;accountsbydata&amp;quot;, function (player)&lt;br /&gt;
   local account = getPlayerAccount(player)&lt;br /&gt;
   setAccountData(account, &amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   local accounts = getAccountsByData(&amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   outputChatBox(getAccountName(accounts[1]), player)                &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55547</id>
		<title>GetAccountsByIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55547"/>
		<updated>2018-07-01T22:50:58Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|12217|&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified IP-address.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByIP ( string ip )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByIP||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ip:''' The IP to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified IP-address. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local ip = getPlayerIP(player)&lt;br /&gt;
		local accounts = getAccountsByIP(ip)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountByID&amp;diff=55546</id>
		<title>GetAccountByID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountByID&amp;diff=55546"/>
		<updated>2018-07-01T22:50:31Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|12217|&lt;br /&gt;
This function returns the account with the specific ID.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account getAccountByID ( int id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''id:''' The ID to get account from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[account]]'' associated with specified ID. Returns ''false'' if invalid arguments were specified or there is no account with this ID.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccount'' that outputs the account-name of the account with ID.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccount&amp;quot;, &lt;br /&gt;
	function (player, cmd, id)&lt;br /&gt;
                id = tonumber(id)&lt;br /&gt;
		local account = getAccountByID(id)&lt;br /&gt;
                if account then&lt;br /&gt;
		   outputChatBox(&amp;quot;The name of the account with that ID is: &amp;quot;..getAccountName(account), player)&lt;br /&gt;
                else &lt;br /&gt;
                   outputChatBox(&amp;quot;There is no account with this ID.&amp;quot;, player)&lt;br /&gt;
                end&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountIP&amp;diff=55545</id>
		<title>GetAccountIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountIP&amp;diff=55545"/>
		<updated>2018-07-01T22:50:14Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11747|&lt;br /&gt;
This function retrieves the IP-address of an [[account]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountIP ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getIP|ip|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the IP of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's IP, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the debugscript when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputDebugScript(getPlayerName(source)..&amp;quot;logged into his account with IP &amp;quot;..getAccountIP(previous_account)) -- announce it into the debugscript&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountID&amp;diff=55539</id>
		<title>GetAccountID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountID&amp;diff=55539"/>
		<updated>2018-07-01T22:48:47Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|12217|&lt;br /&gt;
This function retrieves the ID of an [[account]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getAccountID ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getID|id|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the ID of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a int containing the account's ID, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(&amp;quot;[&amp;quot;..getAccountID(previous_account)..&amp;quot;] &amp;quot;..getAccountName(previous_account)..&amp;quot; Logged into [&amp;quot;..getAccountID(current_account)..&amp;quot;]&amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerPickupLeave&amp;diff=55538</id>
		<title>OnPlayerPickupLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerPickupLeave&amp;diff=55538"/>
		<updated>2018-07-01T22:47:54Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11783|&lt;br /&gt;
This event is triggered when a [[player]] leaves a [[pickup]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
pickup pickupLeft&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''pickupLeft''': the [[pickup]] the [[player]] left.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
This example creates a pickup and outputs a message to the chat box when a player leaves it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local aPickup = createPickup ( 10.0, 10.0, 10.0, 2, 31, 3000, 50 ) --Create an M4 weapon pickup when script starts&lt;br /&gt;
&lt;br /&gt;
function leftWeaponPickup( pickup )&lt;br /&gt;
   if pickup == aPickup then&lt;br /&gt;
      outputChatBox ( &amp;quot;You have left the M4 weapon pickup.&amp;quot;, source ) --Display this message in the chat box&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerPickupLeave&amp;quot;, root, pickedUpWeaponCheck )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPickupLeave&amp;diff=55537</id>
		<title>OnPickupLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPickupLeave&amp;diff=55537"/>
		<updated>2018-07-01T22:47:31Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}} &lt;br /&gt;
{{New feature/item|3.0160|1.5.5|11783|&lt;br /&gt;
This event is triggered when a [[player]] leaves a [[pickup]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player thePlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''thePlayer''': a [[player]] element referring to the player who left the [[pickup]].&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[pickup]] that was left by the player.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a pickup and outputs a message to the chat box when a player leaves it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local aPickup = createPickup ( 10.0, 10.0, 10.0, 2, 31, 3000, 50 ) --Create an M4 weapon pickup when script starts&lt;br /&gt;
&lt;br /&gt;
function leftWeaponPickup( player )&lt;br /&gt;
   outputChatBox ( &amp;quot;You have left the M4 weapon pickup.&amp;quot;, player ) --Display this message in the chat box&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPickupLeave&amp;quot;, aPickup, pickedUpWeaponCheck )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Pickup events}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPickupLeave&amp;diff=55536</id>
		<title>OnPickupLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPickupLeave&amp;diff=55536"/>
		<updated>2018-07-01T22:47:18Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}} &lt;br /&gt;
{{New feature/item|3.0160|1.5.6|11783|&lt;br /&gt;
This event is triggered when a [[player]] leaves a [[pickup]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player thePlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''thePlayer''': a [[player]] element referring to the player who left the [[pickup]].&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[pickup]] that was left by the player.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a pickup and outputs a message to the chat box when a player leaves it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local aPickup = createPickup ( 10.0, 10.0, 10.0, 2, 31, 3000, 50 ) --Create an M4 weapon pickup when script starts&lt;br /&gt;
&lt;br /&gt;
function leftWeaponPickup( player )&lt;br /&gt;
   outputChatBox ( &amp;quot;You have left the M4 weapon pickup.&amp;quot;, player ) --Display this message in the chat box&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPickupLeave&amp;quot;, aPickup, pickedUpWeaponCheck )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Pickup events}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55534</id>
		<title>SetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55534"/>
		<updated>2018-07-01T22:29:57Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountName ( account theAccount, string name [, bool allowCaseVariations = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:setName||name}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to change the name.&lt;br /&gt;
*'''name:''' The new name.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''allowCaseVariations:''' Whether the username is case sensitive (if this is set to true, usernames &amp;quot;Bob&amp;quot; and &amp;quot;bob&amp;quot; will refer to different accounts)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account name was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Change the name of an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;changeaccountname&amp;quot;, function(player, _, oldname, newname)&lt;br /&gt;
    if not oldname or not newname then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local account = getAccount(oldname)&lt;br /&gt;
    if not account then&lt;br /&gt;
        return &lt;br /&gt;
    end&lt;br /&gt;
    setAccountName(account, newname)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Useful_Functions/SetAccountName&amp;diff=55533</id>
		<title>Useful Functions/SetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Useful_Functions/SetAccountName&amp;diff=55533"/>
		<updated>2018-07-01T22:28:22Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Bonus moved page Useful Functions/SetAccountName to SetAccountName over redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[SetAccountName]]&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55532</id>
		<title>SetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55532"/>
		<updated>2018-07-01T22:28:22Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Bonus moved page Useful Functions/SetAccountName to SetAccountName over redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountName ( account theAccount, string name [, bool allowCaseVariations = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:setName||name}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to change the name.&lt;br /&gt;
*'''name:''' The new name.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''allowCaseVariations:''' Whether the username is case sensitive (if this is set to true, usernames &amp;quot;Bob&amp;quot; and &amp;quot;bob&amp;quot; will refer to different accounts)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account name was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Change the name of an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;changeaccountname&amp;quot;, function(player, _, oldname, newname)&lt;br /&gt;
    if not oldname or not newname then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local account = getAccountByName(oldname)&lt;br /&gt;
    if not account then&lt;br /&gt;
        return &lt;br /&gt;
    end&lt;br /&gt;
    setAccountName(account, newname)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55531</id>
		<title>SetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetAccountName&amp;diff=55531"/>
		<updated>2018-07-01T22:26:31Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setAccountName ( account theAccount, string name [, bool allowCaseVariations = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:setName||name}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to change the name.&lt;br /&gt;
*'''name:''' The new name.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''allowCaseVariations:''' Whether the username is case sensitive (if this is set to true, usernames &amp;quot;Bob&amp;quot; and &amp;quot;bob&amp;quot; will refer to different accounts)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the account name was set, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Change the name of an account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;changeaccountname&amp;quot;, function(player, _, oldname, newname)&lt;br /&gt;
    if not oldname or not newname then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    local account = getAccountByName(oldname)&lt;br /&gt;
    if not account then&lt;br /&gt;
        return &lt;br /&gt;
    end&lt;br /&gt;
    setAccountName(account, newname)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55527</id>
		<title>GetAccountsByData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55527"/>
		<updated>2018-07-01T22:17:42Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts with specified dataName and value (set with setAccountData).&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByData ( string dataName, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByData||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dataName:''' The name of the data&lt;br /&gt;
*'''value:''' The value the dataName should have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified value at dataName. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
Useless example to show how it works.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;accountsbydata&amp;quot;, function (player)&lt;br /&gt;
   local account = getPlayerAccount(player)&lt;br /&gt;
   setAccountData(account, &amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   local accounts = getAccountsByData(&amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   outputChatBox(getAccountName(accounts[1]), player)                &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55526</id>
		<title>GetAccountsByData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55526"/>
		<updated>2018-07-01T22:17:30Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts with specified dataName and value (set with setAccountData).&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByData ( string dataName, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByData||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dataName:''' The name of the data&lt;br /&gt;
*'''value:''' The value the dataName should have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified value at dataName. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Useless example to show how it works.&lt;br /&gt;
addCommandHandler(&amp;quot;accountsbydata&amp;quot;, function (player)&lt;br /&gt;
   local account = getPlayerAccount(player)&lt;br /&gt;
   setAccountData(account, &amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   local accounts = getAccountsByData(&amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   outputChatBox(getAccountName(accounts[1]), player)                &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55523</id>
		<title>GetAccountsByData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55523"/>
		<updated>2018-07-01T22:17:05Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts with specified dataName and value (setted with setAccountData)&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByData ( string dataName, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByData||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dataName:''' The name of the data&lt;br /&gt;
*'''value:''' The value the dataName should have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified value at dataName. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Useless example to show how it works.&lt;br /&gt;
addCommandHandler(&amp;quot;accountsbydata&amp;quot;, function (player)&lt;br /&gt;
   local account = getPlayerAccount(player)&lt;br /&gt;
   setAccountData(account, &amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   local accounts = getAccountsByData(&amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   outputChatBox(getAccountName(accounts[1]), player)                &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55522</id>
		<title>GetAccountsByData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByData&amp;diff=55522"/>
		<updated>2018-07-01T22:16:28Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;__NOTOC__  {{Server function}} This function returns a table containing all accounts that were logged onto from specified IP-address.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified IP-address.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByData ( string dataName, string value )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByData||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dataName:''' The name of the data&lt;br /&gt;
*'''value:''' The value the dataName should have&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified value at dataName. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Useless example to show how it works.&lt;br /&gt;
addCommandHandler(&amp;quot;accountsbydata&amp;quot;, function (player)&lt;br /&gt;
   local account = getPlayerAccount(player)&lt;br /&gt;
   setAccountData(account, &amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   local accounts = getAccountsByData(&amp;quot;test&amp;quot;, &amp;quot;hello&amp;quot;)&lt;br /&gt;
   outputChatBox(getAccountName(accounts[1]), player)                &lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountByID&amp;diff=55521</id>
		<title>GetAccountByID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountByID&amp;diff=55521"/>
		<updated>2018-07-01T22:12:07Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;__NOTOC__  {{Server function}} This function returns the account with the specific ID.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; account getAccountByID ( int id ) &amp;lt;/syntaxhigh...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns the account with the specific ID.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account getAccountByID ( int id )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''id:''' The ID to get account from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[account]]'' associated with specified ID. Returns ''false'' if invalid arguments were specified or there is no account with this ID.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccount'' that outputs the account-name of the account with ID.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccount&amp;quot;, &lt;br /&gt;
	function (player, cmd, id)&lt;br /&gt;
                id = tonumber(id)&lt;br /&gt;
		local account = getAccountByID(id)&lt;br /&gt;
                if account then&lt;br /&gt;
		   outputChatBox(&amp;quot;The name of the account with that ID is: &amp;quot;..getAccountName(account), player)&lt;br /&gt;
                else &lt;br /&gt;
                   outputChatBox(&amp;quot;There is no account with this ID.&amp;quot;, player)&lt;br /&gt;
                end&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountIP&amp;diff=55520</id>
		<title>GetAccountIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountIP&amp;diff=55520"/>
		<updated>2018-07-01T22:07:04Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;{{Server function}} __NOTOC__ This function retrieves the IP-address of an account.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string getAccountIP ( account theAccount ) &amp;lt;/...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the IP-address of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountIP ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getIP|ip|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the IP of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's IP, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the debugscript when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputDebugScript(getPlayerName(source)..&amp;quot;logged into his account with IP &amp;quot;..getAccountIP(previous_account)) -- announce it into the debugscript&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55519</id>
		<title>GetAccountsByIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55519"/>
		<updated>2018-07-01T22:03:57Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified IP-address.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByIP ( string ip )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByIP||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ip:''' The IP to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified IP-address. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local ip = getPlayerIP(player)&lt;br /&gt;
		local accounts = getAccountsByIP(ip)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55518</id>
		<title>GetAccountsByIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55518"/>
		<updated>2018-07-01T22:03:37Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified IP-address.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByIP ( string ip )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByIP||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ip:''' The IP to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified ip. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local ip = getPlayerIP(player)&lt;br /&gt;
		local accounts = getAccountsByIP(ip)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55517</id>
		<title>GetAccountsByIP</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsByIP&amp;diff=55517"/>
		<updated>2018-07-01T22:02:49Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;__NOTOC__  {{Server function}} This function returns a table containing all accounts that were logged onto from specified IP.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified [[IP]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsByIP ( string ip )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllByIP||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''ip:''' The [[ip]] to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified ip. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local ip = getPlayerIP(player)&lt;br /&gt;
		local accounts = getAccountsByIP(ip)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=55516</id>
		<title>Template:Account functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=55516"/>
		<updated>2018-07-01T21:57:45Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addAccount]]&lt;br /&gt;
*[[copyAccountData]]&lt;br /&gt;
*[[getAccount]]&lt;br /&gt;
*[[getAccountByID]]&lt;br /&gt;
*[[getAccountData]]&lt;br /&gt;
*[[getAccountID]]&lt;br /&gt;
*[[getAccountIP]]&lt;br /&gt;
*[[getAccountName]]&lt;br /&gt;
*[[getAccountPlayer]]&lt;br /&gt;
*[[getAccountSerial]]&lt;br /&gt;
*[[getAccounts]]&lt;br /&gt;
*[[getAccountsByData]]&lt;br /&gt;
*[[getAccountsByIP]]&lt;br /&gt;
*[[getAccountsBySerial]]&lt;br /&gt;
*[[getAllAccountData]]&lt;br /&gt;
*[[getPlayerAccount]]&lt;br /&gt;
*[[isGuestAccount]]&lt;br /&gt;
*[[logIn]]&lt;br /&gt;
*[[logOut]]&lt;br /&gt;
*[[removeAccount]]&lt;br /&gt;
*[[setAccountData]]&lt;br /&gt;
*[[setAccountName]]&lt;br /&gt;
*[[setAccountPassword]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=55515</id>
		<title>Template:Account functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Account_functions&amp;diff=55515"/>
		<updated>2018-07-01T21:56:14Z</updated>

		<summary type="html">&lt;p&gt;Bonus: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addAccount]]&lt;br /&gt;
*[[copyAccountData]]&lt;br /&gt;
*[[getAccount]]&lt;br /&gt;
*[[getAccountData]]&lt;br /&gt;
*[[getAccountID]]&lt;br /&gt;
*[[getAccountName]]&lt;br /&gt;
*[[getAccountPlayer]]&lt;br /&gt;
*[[getAccountSerial]]&lt;br /&gt;
*[[getAccounts]]&lt;br /&gt;
*[[getAccountsBySerial]]&lt;br /&gt;
*[[getAllAccountData]]&lt;br /&gt;
*[[getPlayerAccount]]&lt;br /&gt;
*[[isGuestAccount]]&lt;br /&gt;
*[[logIn]]&lt;br /&gt;
*[[logOut]]&lt;br /&gt;
*[[removeAccount]]&lt;br /&gt;
*[[setAccountData]]&lt;br /&gt;
*[[setAccountPassword]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountID&amp;diff=55512</id>
		<title>GetAccountID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountID&amp;diff=55512"/>
		<updated>2018-07-01T21:41:00Z</updated>

		<summary type="html">&lt;p&gt;Bonus: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the ID of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getAccountID ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getID|id|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the ID of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a int containing the account's ID, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(&amp;quot;[&amp;quot;..getAccountID(previous_account)..&amp;quot;] &amp;quot;..getAccountName(previous_account)..&amp;quot; Logged into [&amp;quot;..getAccountID(current_account)..&amp;quot;]&amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountID&amp;diff=55511</id>
		<title>GetAccountID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountID&amp;diff=55511"/>
		<updated>2018-07-01T21:39:01Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;{{Server function}} __NOTOC__ This function retrieves the ID of an account.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int getAccountID ( account theAccount ) &amp;lt;/syntaxhighl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the ID of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getAccountID ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getID|id|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a int containing the account's ID, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(&amp;quot;[&amp;quot;..getAccountID(previous_account)..&amp;quot;] &amp;quot;..getAccountName(previous_account)..&amp;quot; Logged into [&amp;quot;..getAccountID(current_account)..&amp;quot;]&amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerPickupLeave&amp;diff=55510</id>
		<title>OnPlayerPickupLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerPickupLeave&amp;diff=55510"/>
		<updated>2018-07-01T21:32:38Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;__NOTOC__ {{Server event}} This event is triggered when a player leaves a pickup.  ==Parameters== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; pickup pickupLeft &amp;lt;/syntaxhighlight&amp;gt;   *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a [[player]] leaves a [[pickup]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
pickup pickupLeft&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''pickupLeft''': the [[pickup]] the [[player]] left.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
This example creates a pickup and outputs a message to the chat box when a player leaves it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local aPickup = createPickup ( 10.0, 10.0, 10.0, 2, 31, 3000, 50 ) --Create an M4 weapon pickup when script starts&lt;br /&gt;
&lt;br /&gt;
function leftWeaponPickup( pickup )&lt;br /&gt;
   if pickup == aPickup then&lt;br /&gt;
      outputChatBox ( &amp;quot;You have left the M4 weapon pickup.&amp;quot;, source ) --Display this message in the chat box&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerPickupLeave&amp;quot;, root, pickedUpWeaponCheck )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPickupLeave&amp;diff=55509</id>
		<title>OnPickupLeave</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPickupLeave&amp;diff=55509"/>
		<updated>2018-07-01T21:28:59Z</updated>

		<summary type="html">&lt;p&gt;Bonus: Created page with &amp;quot;__NOTOC__ {{Server event}}  This event is triggered when a player leaves a pickup.  ==Parameters== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; player thePlayer &amp;lt;/syntaxhighlight&amp;gt;   *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}} &lt;br /&gt;
This event is triggered when a [[player]] leaves a [[pickup]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player thePlayer&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''thePlayer''': a [[player]] element referring to the player who left the [[pickup]].&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[pickup]] that was left by the player.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a pickup and outputs a message to the chat box when a player leaves it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local aPickup = createPickup ( 10.0, 10.0, 10.0, 2, 31, 3000, 50 ) --Create an M4 weapon pickup when script starts&lt;br /&gt;
&lt;br /&gt;
function leftWeaponPickup( player )&lt;br /&gt;
   outputChatBox ( &amp;quot;You have left the M4 weapon pickup.&amp;quot;, player ) --Display this message in the chat box&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPickupLeave&amp;quot;, aPickup, pickedUpWeaponCheck )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Pickup events}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetWeatherBlended&amp;diff=55458</id>
		<title>SetWeatherBlended</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetWeatherBlended&amp;diff=55458"/>
		<updated>2018-06-24T10:31:14Z</updated>

		<summary type="html">&lt;p&gt;Bonus: It's not directly 2 hours, it's 1-2 hours&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will change the current [[weather]] to another in a smooth manner, over the period of 1-2 in-game hours (unlike [[setWeather]], which sets a new weather instantly). To ensure this transition performs as expected, you should not call this function until [[getWeather]] indicates that no transition is already being done.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setWeatherBlended ( int weatherID )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''weatherID:''' The ID of the [[weather]] state you wish to set. Valid values are 0 to 255 inclusive.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' if an invalid ''weatherID'' is passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example sets the weather to sunny, then makes it change to a foggy over the period of one-two hours (assuming that a in-game hour is a minute in real time).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Set the weather to sunny&lt;br /&gt;
setWeather ( 0 )&lt;br /&gt;
-- Blend the weather to foggy&lt;br /&gt;
setWeatherBlended ( 9 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:setWeatherBlended]]&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerPickupHit&amp;diff=52931</id>
		<title>OnPlayerPickupHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerPickupHit&amp;diff=52931"/>
		<updated>2017-11-29T15:21:30Z</updated>

		<summary type="html">&lt;p&gt;Bonus: There is no &amp;quot;matchingDimension&amp;quot; in onPlayerPickupHit!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server event}}&lt;br /&gt;
This event is triggered when a [[player]] hits a [[pickup]].&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
pickup pickupHit&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
*'''pickupHit''': The pickup the player hit&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the [[player]] that hit the pickup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Only include this section below if cancelling the event has any effect. If you don't know if it does, ask a dev! --&amp;gt;&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
If this event is [[Event system#Canceling|canceled]], the player will not be able to pick up this pickup.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;!-- Explain what the example is in a single sentance --&amp;gt;&lt;br /&gt;
This example disables the use of armour pickups.&lt;br /&gt;
&amp;lt;!-- Add the code below, an emphasis should be on making it clear, not optimized. You could provide two versions if you wish, one clear and well commented, the other optimized --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function armourBlock(pickup)&lt;br /&gt;
	if (getPickupType(pickup) == 1) then -- If it's an armour pickup&lt;br /&gt;
		cancelEvent() -- Cancel the event&lt;br /&gt;
		outputChatBox(&amp;quot;Armour pickups are disabled.&amp;quot;,source,255,0,0)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerPickupHit&amp;quot;,getRootElement(),armourBlock)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:FadeCamera&amp;diff=50794</id>
		<title>Talk:FadeCamera</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:FadeCamera&amp;diff=50794"/>
		<updated>2017-04-29T13:25:23Z</updated>

		<summary type="html">&lt;p&gt;Bonus: timeToFade info is wrong&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;With a gamespeed smaller than 1 you can use a fade smaller than 1. &lt;br /&gt;
&amp;quot;Any number less than 1 makes the fade instant.&amp;quot; isn't right when gamespeed is lower than 1.&lt;br /&gt;
Example: timeToFade 0.3 at gamespeed 0.1 is like 3 seconds at gamespeed 1&lt;/div&gt;</summary>
		<author><name>Bonus</name></author>
	</entry>
</feed>