giveLoadoutToPed
GIVE_LOADOUT_TO_PED0x68F8BE6AF5CDF8A6The GTA V native GIVE_LOADOUT_TO_PED of the WEAPON namespace, as LS:MP client scripts call it: the global function giveLoadoutToPed, in JavaScript and in Lua.
giveLoadoutToPed(ped: Ped, loadoutHash: Hash): voidgiveLoadoutToPed(ped: Ped, loadoutHash: Hash)Usage
JavaScript
giveLoadoutToPed(ped, loadoutHash);Lua
giveLoadoutToPed(ped, loadoutHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
loadoutHash | Hash | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Gives the specified loadout to the specified ped.
Loadouts are defined in common.rpf\data\ai\loadouts.meta
Reference
- Namespace
- Weapon WEAPON
- In the game
void GIVE_LOADOUT_TO_PED(Ped ped, Hash loadoutHash)- Hash
0x68F8BE6AF5CDF8A6- Introduced
- Game build 505 legacy numbering
- Formerly
_GIVE_LOADOUT_TO_PED