Documentation Index
Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt
Use this file to discover all available pages before exploring further.
Spawn
Thespawn module is available on the client. It spawns peds and objects, applies common entity options, supports proximity-based streaming with ox_lib points, and tracks handles for cleanup.
Spawn a ped
Spawn an object
Options
Calls
FreezeEntityPosition(handle, freeze).Calls
SetEntityInvincible(handle, invincible).Defaults to enabled. Set
false to disable entity collision.Calls
SetEntityAlpha(handle, alpha, false).Spawns the entity as networked when set to
true.Object-only rotation table with
x, y, and z.Ped-only option for
SetBlockingOfNonTemporaryEvents.Ped-only option for
SetPedDiesWhenInjured.Ped-only scenario passed to
TaskStartScenarioInPlace.Ped-only animation with
dict, clip, and optional flag.Proximity streaming
UsespawnOnNear when an entity should only exist while the player is close to a point.
Scoped cleanup
Scopes let you clean up a set of spawned handles and stream entries together.Deletes every globally tracked spawned entity and removes all stream points registered through the module.
Deletes entities and stream entries created through that scope only.
sure_lib also calls
spawn:deleteAll() when the current resource stops.