gta.createPickup: Difference between revisions
(Created page with "{{ScriptItem |endpoint = shared |type = function |name = gta.createPickup |parameters = int model, [ Vec3 position = Vec3(0.0,0.0,0.0), int pickupType = 0 ] |parameter1 = int...") |
No edit summary |
||
Line 6: | Line 6: | ||
|parameter1 = int model The pickup model ID. | |parameter1 = int model The pickup model ID. | ||
|parameter2 = Vec3 position optional Vec3(0.0,0.0,0.0) The position for the pickup. | |parameter2 = Vec3 position optional Vec3(0.0,0.0,0.0) The position for the pickup. | ||
| | |parameter3 = int pickupType optional 0 The pickup type. | ||
|return1 = Pickup The pickup handle. | |return1 = Pickup The pickup handle. | ||
|returnFail1 = null n/a | |returnFail1 = null n/a |
Revision as of 20:24, 1 November 2020
Function
Server and Client
Online and Offline
Pickup gta.createPickup(int model, [ Vec3 position = Vec3(0.0,0.0,0.0), int pickupType = 0 ])
Parameters
1) | int | model | The pickup model ID. |
2) | Vec3 | position | Optional, defaults to Vec3(0.0,0.0,0.0). The position for the pickup. |
3) | int | pickupType | Optional, defaults to 0. The pickup type. |
Return
Pickup | The pickup handle. |
Notes
There aren't any notes for this function.
Examples
There aren't any examples for this function.
Compatibility
There isn't any compatibility information for this function.
Related
Server Related
getPickupCount
getPickups
gta.createPickup
Client Related
getPickupCount
getPickups
getWeaponPickupPrice
gta.createPickup
gta.enableHelpPickup
gta.removeHelpPickup
gta.removeHelpPickups
setWeaponPickupPrice
pickup.children
pickup.clearExistsFor
pickup.collected
pickup.dimension
pickup.existsFor
pickup.getData
pickup.getRotation
pickup.id
pickup.isCreatedFor
pickup.isLocal
pickup.isOwner
pickup.isSyncer
pickup.isType
pickup.modelIndex
pickup.name
pickup.netFlags
pickup.parent
pickup.pickupType
pickup.position
pickup.quantity
pickup.removeAllData
pickup.removeData
pickup.resource
pickup.rotation
pickup.setData
pickup.setExistsFor
pickup.setRotation
pickup.setSyncer
pickup.spawnTime
pickup.streamInDistance
pickup.streamOutDistance
pickup.syncer
pickup.syncerId
pickup.type