Scripting/Server/Functions/CreatePickup
Creates a pickup; model is a GTA III pickup model id (for example 1362). It respawns after pickup_respawn_time unless you change it.
Syntax
CreatePickup(model, pos)Arguments
- int model – Creates a pickup;
modelis a GTA III pickup model id (for example 1362). - Vector pos
Returns
Pickup or null.
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "createpickup" )
{
local result = CreatePickup( 95, player.Pos );
MessagePlayer( "CreatePickup returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- FindCheckpoint
- GetCheckpointCount
- CreateBlip
- CreateClientBlip
- GangZoneCreate
Section: Creating world entities
Categories: Server functions | Creating world entities