ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. takeAllWeapons

Function

takeAllWeapons

ServerWeaponsIdentical to MTA:SA

Takes every weapon from a ped.

Syntax

bool takeAllWeapons(ped ped)

Arguments

pedped
A player or ped.

Returns

true on success.

Example

addEventHandler("onPlayerWasted", root, function()
    takeAllWeapons(source)
end)