SetEntityDistanceCullingRadius
DocsSetEntityDistanceCullingRadius(entity, radius)Description
It overrides the default distance culling radius of an entity. Set to 0.0 to reset.
If you want to interact with an entity outside of your players' scopes set the radius to a huge number.
WARNING: Culling natives are deprecated and have known, unfixable issues
Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | The entity handle to override the distance culling radius. |
radius | float | The new distance culling radius. |
Quick Snippet: Get Entityentity
entityUse this to obtain an entity handle from the player's aim or crosshair.
-- Get the entity the player is aiming at
local ped = PlayerPedId()
local hit, entity = GetEntityPlayerIsFreeAimingAt(PlayerId())
if hit and entity ~= 0 then
print("Entity: " .. entity)
print("Model: " .. GetEntityModel(entity))
print("Type: " .. GetEntityType(entity)) -- 1=Ped, 2=Vehicle, 3=Object
endReturns
voidThis native does not return a value.