DarkRP.Player.DoPropertyTax

From Official DarkRP Wiki
Jump to: navigation, search
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of functions.
Function
Function name Player:DoPropertyTax()
Description:
If the config is set to property tax, this function will trigger a rent day. If the player dosen't pay up, all their owned doors and vehicles will be unowned. See Player.UnownAll.
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.DoPropertyTax]Player:DoPropertyTax[/url][/b]

Examples

DescriptionTriggers property tax for every non-admin player.
Used onNewerServer.png
Code
function TriggerAll( )
	for k, v in pairs(player.GetAll()) do
		if v:IsAdmin() == false or v:IsSuperAdmin() == false then
			v:DoPropertyTax()
		end
	end
end
OutputN/A


Additional Notes

  • In the example, super admins will still count as admins. The super admin function is in for teaching purposes only.