DarkRP.Entity.IsMoneyBag

From Official DarkRP Wiki
Jump to navigation Jump to 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 Entity:IsMoneyBag()
Description:
Checks if the entity is a money bag.
Returns: boolean
Part of Library: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Entity.IsMoneyBag]Entity:IsMoneyBag[/url][/b]

Examples

DescriptionRemoves all spawned money.
Used onNewerServer.png
Code
for _, ent in ipairs(ents.GetAll()) do
	if ent:IsMoneyBag() then
		ent:Remove()
	end
end
OutputN/A


Additional Notes

  • A money bag is the "spawned_money" entity.