I found a video from youtube where one guy play’s on some kind of a Roleplay server where police tells him to drop guns and he opens a menu and just clicks on it with his mouse and drops all his things.That’s very nice script I wonder does anybody have it?
This is a custom script for DOJ. There are weapon drop scripts if you use the search button in the releases section.
Es extended has this built in along with a bunch of other stuff
Here you go, here is the function.
function dropweap() local ped = PlayerPedId() local wep = GetSelectedPedWeapon(ped) SetPedDropsWeaponsWhenDead(ped, true) RequestAnimDict("mp_weapon_drop") if DoesEntityExist(ped) and not IsEntityDead(ped) and not IsPedInAnyVehicle(ped, true) and not IsPauseMenuActive() and IsPedArmed(ped, 7) then -- INPUT_DROP_WEAPON (F7) TaskPlayAnim(ped, "mp_weapon_drop", "drop_bh", 8.0, 2.0, -1, 0, 2.0, 0, 0, 0 ) SetPedDropsInventoryWeapon(ped, wep, 0, 2.0, 0, -1) SetCurrentPedWeapon(ped, GetHashKey("WEAPON_UNARMED"), true) end end
Bit late like