From Official DarkRP Wiki
|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.
|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.|
|Part of Library:||Player|
|Description||Triggers property tax for every non-admin player.|
function TriggerAll( ) for k, v in pairs(player.GetAll()) do if v:IsAdmin() == false or v:IsSuperAdmin() == false then v:DoPropertyTax() end end end
- In the example, super admins will still count as admins. The super admin function is in for teaching purposes only.