ped.giveWeapon: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
Line 11: Line 11:
|return = void
|return = void
|freturn = void
|freturn = void
|exampleJSCS = addCommandHandler("gun", (command, text) =>
{
    if (!localClient.player)
        return;
    if (text.length == 0)
        return;
let weaponId = parseInt(text);
    if (isNaN(weaponId))
        return;
   
    localClient.player.giveWeapon(weaponId, 250, true);
});
}}
}}
7,072

edits

Navigation menu