Natives (Data Manipulation) - samp-incognito/samp-streamer-plugin GitHub Wiki
Home ▸ Natives ▸ Data Manipulation
(type, id, data, &Float:result)
Streamer_GetFloatDataGets float data from an item.
(type, id, data, Float:value)
Streamer_SetFloatDataSets float data for an item.
(type, id, data)
Streamer_GetIntDataGets integer data from an item.
(type, id, data, value)
Streamer_SetIntDataSets integer data for an item.
(type, id, data, dest[], maxdest = sizeof dest)
Streamer_GetArrayDataGets array data for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
(type, id, data, dest[], maxdest = sizeof dest)
Streamer_SetArrayDataSets array data for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
(type, id, data, value)
Streamer_IsInArrayDataReturns whether a value is in an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
(type, id, data, value)
Streamer_AppendArrayDataAppends a value to an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
(type, id, data, value)
Streamer_RemoveArrayDataRemoves a value from an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
(type, id, data)
Streamer_GetArrayDataLengthGets the length of an array for an item. Only works for E_STREAMER_AREA_ID
, E_STREAMER_EXTRA_ID
, E_STREAMER_INTERIOR_ID
, E_STREAMER_PLAYER_ID
and E_STREAMER_WORLD_ID
.
(type)
Streamer_GetUpperBound
- Parameters:
type
: The item type.- Returns:
- The upper bound.
Gets the upper bound (highest ID) for an item type.
- This differs from
Streamer_CountItems
in that it returns the highest ID and not just the number of items that have been created. This makes it useful for iteration purposes.
Examples
- Change a pickup's model ID:
Streamer_SetIntData(STREAMER_TYPE_PICKUP, pickupid, E_STREAMER_MODEL_ID, 1212);
- Store extra IDs for an object:
new extraIDs[3] = { 1, 2, 3 }; Streamer_SetArrayData(STREAMER_TYPE_OBJECT, objectid, E_STREAMER_EXTRA_ID, extraIDs);