Scripting/Squirrel/Functions/SetAmmuWeapon

From Vice City Multiplayer
Revision as of 21:07, 22 August 2019 by AlecuMadalin32 (talk | contribs) (Created page with "== Syntax == <pre>SetAmmuWeapon( weaponslot, weaponID, cost )</pre> == Arguments == * '''weaponslot''' - Give the weapon a slot * '''weaponid''' - ID of the weapon * '''cos...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

Syntax

SetAmmuWeapon( weaponslot, weaponID, cost )

Arguments

  • weaponslot - Give the weapon a slot
  • weaponid - ID of the weapon
  • cost - The amount of money

Example

function onScriptLoad () {
	SetAmmuWeapon(10,21,10)
}

Notes

The function onScriptLoad