Wiki

Clone wiki

EFLC-MP LUA / setEntityStreamDistance

Description

Defines a new streaming distance for a server entity. Added on Svr Build 11.3

Parameters

Int entityType, Int entityId, Float distance
Int entityType: 0 player, 1 vehicle, 2 checkpoint, 3 object, 4 NPC

Int entityId: ID of the entity, such as player ID

Float distance: Default is 200.0

Return values


Example

#!lua
local x, y, z = getPlayerPos(playerid)
local id = createCheckPoint(x, y, z, 0.5, 0xFF0000FF, 1, 0, 1)
setEntityStreamDistance(2, id, 15.0)

Updated