Natives (Updates) - samp-incognito/samp-streamer-plugin GitHub Wiki
Streamer_ProcessActiveItems()
- Parameters:
- None.
- Returns:
- Always
1.
Updates any item that is currently active (that is, moving or attached), including:
- Moving and attached objects.
- Attached areas and 3D text labels.
Streamer_ToggleIdleUpdate(playerid, toggle)
- Parameters:
playerid: The player ID.toggle:0to turn off,1to turn on.- Returns:
0on failure,1on success.
Toggles whether updates are issued while the player is idle.
- By default, this is turned off.
Streamer_IsToggleIdleUpdate(playerid)
- Parameters:
playerid: The player ID.- Returns:
0or1.
Returns whether Streamer_ToggleIdleUpdate is enabled for the player.
Streamer_ToggleCameraUpdate(playerid, toggle)
- Parameters:
playerid: The player ID.toggle:0to turn off,1to turn on.- Returns:
0on failure,1on success.
Toggles whether updates are based on the player's current camera position rather than the player's current world position.
- By default, this is turned off.
Streamer_IsToggleCameraUpdate(playerid)
- Parameters:
playerid: The player ID.- Returns:
0or1.
Returns whether Streamer_ToggleCameraUpdate is enabled for the player.
Streamer_ToggleItemUpdate(playerid, type, toggle)
- Parameters:
playerid: The player ID.type: The item type.toggle:0to turn off,1to turn on.- Returns:
0on failure,1on success.
Toggles whether updates are issued for the specified player and item type.
- By default, every item type is turned on, except for NPCs.
Streamer_IsToggleItemUpdate(playerid, type)
- Parameters:
playerid: The player ID.type: The item type.- Returns:
0or1.
Returns whether Streamer_ToggleItemUpdate is enabled for the specified player and item type.
Streamer_GetLastUpdateTime(&Float:time)
- Parameters:
time: The last automatic update time.- Returns:
- Always
1.
Stores the time taken by the last automatic update as a float in milliseconds.
Streamer_Update(playerid, type = -1)
- Parameters:
playerid: The player ID.type: The item type.- Returns:
0on failure,1on success.
Issues an update for the player.
- Optionally, an item type may be specified.
Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, type = -1, compensatedtime = -1, freezeplayer = 1)
- Parameters:
playerid: The player ID.x: The game world X coordinate.y: The game world Y coordinate.z: The game world Z coordinate.worldid: The virtual world ID.interiorid: The interior ID.type: The item type.compensatedtime: The compensated time in milliseconds (see below).freezeplayer:0to turn off,1to turn on (see below).- Returns:
0on failure,1on success.
Issues an update for the player at a specific position.
- This can be used to preload items before setting the player's position or to stream items under
OnPlayerRequestClass. - Optionally, a virtual world, interior, and item type may be specified.
- If
compensatedtimeis set to a positive number, it can be used to specify how long, in milliseconds, future automatic updates will be paused for the player. During this time, the player's controls will be disabled (assumingfreezeplayeris set to1), and the player's position will also be set to the new coordinates.