Weapon Holster

I am extremely new to scripting with FiveM and LUA. I am attempting to make a simple script that does the following:

Detects if the player is in a cop skin and if the player has a pistol in his hands if both of these are true I want to do the following:

I want player model to change from a weapon showing up in the holster to a weapon not in the holster by changing the ped variations under accessorizes.

This is what I have so far and I don’t think even this will work the way I want:

if HasPedGotWeapon(GetPlayerPed(-1),GetHashKey(“WEAPON_COMBATPISTOL”),true) and if Playermodel = S_M_Y_Cop_01 then

end

This script already does that :wink: [Release] PTTPoliceRadio by @Deziel0495
If you don’t want the radio animation just edit it until it fits your needs.

1 Like