DarkRP.Player.DropDRPWeapon

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 Player:DropDRPWeapon(Entity weapon)
Description:
Drops the player's weapon as a DarkRP entity (spawned_weapon)
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.DropDRPWeapon]Player:DropDRPWeapon[/url][/b]

Examples

DescriptionDrops the weapon the player is holding.
Used onNewerServer.png
Code
function DropActiveWeapon(ply)
	ply:DropDRPWeapon(ply:GetActiveWeapon())
end
OutputN/A