DarkRP.Player.DropDRPWeapon
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 | Player:DropDRPWeapon(Entity weapon) |
Description: | |
Drops the player's weapon as a DarkRP entity (spawned_weapon) | |
Returns: | nil |
Part of Library: | Player |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.DropDRPWeapon]Player:DropDRPWeapon[/url][/b] |
Examples[edit]
Description | Drops the weapon the player is holding. |
---|---|
Used on | ![]() |
Code | function DropActiveWeapon(ply)
ply:DropDRPWeapon(ply:GetActiveWeapon())
end
|
Output | N/A |