DarkRP.Player.DoPropertyTax

From GMod Wiki

Jump to: navigation, search
Deletion.pngThis page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here.
Reason for deletion: Not what Garry wants the wiki to be used for
Last Edit was made on 11/16/2011
Gamemode Function: DarkRP.Player.DoPropertyTax
DarkRP.Player.DoPropertyTax is a function that is defined in the DarkRP Gamemode and its derivatives.
Function
Syntax Player:DoPropertyTax( )
Where is this used?
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.garrysmod.com/?title=DarkRP.Player.DoPropertyTax]DarkRP.Player.DoPropertyTax [img]http://wiki.garrysmod.com/favicon.ico[/img][/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

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox