DarkRP.Entity.IsMoneyBag
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Entity.IsMoneyBag]Entity:IsMoneyBag[/url][/b] |
Examples[edit]
Description | Removes all spawned money. |
---|---|
Used on | ![]() |
Code | for _, ent in ipairs(ents.GetAll()) do
if ent:IsMoneyBag() then
ent:Remove()
end
end
|
Output | N/A |
Additional Notes[edit]
- A money bag is the "spawned_money" entity.