Vehicle.addNewItemToCargo 437
Puts an item in the vehicle's cargo: ammo boxes, magazines, bandages, weapons, anything with an id in the items database. Online the change is sent to the owner of the vehicle and to whoever sits inside.Items of a DLC the executing player does not own are skipped with a line in the F3 console. Nothing is added when the cargo has no room.
Return value
| Return Type | Description |
|---|---|
| void | This function doesn't return anything |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | string | Id of the item to add |
Examples
No examples available.
