resetAmbientPedPopulationZonesToBootstrap
Client-side
Restores the stock main.scm population-zone bootstrap inside San Andreas Online's reversible population world state.
Syntax
bool resetAmbientPedPopulationZonesToBootstrap()Returns
true when the bootstrap state was restored; false when the population world is not available.
Ownership and lifecycle
Candidate queries create nothing. A multiplayer resource must validate each proposal, create and own the real NPCs and vehicles, assign one current syncer, handle ownership changes, and clean up every element. Native AI and event tokens belong to the calling resource and are revoked when that resource stops.
Where this comes from
SOURCECLuaWorldDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaWorldDefs.cpp INTRODUCED / EXTENDED1004257b9Read the commit and why the change was made TEST RESOURCE native-ped-traffic test-resources/native-ped-traffic
RELATED SA:O APIS
Read the system guide → Continue exploring
← Back to the SA:O Lua API · How Synchronized NPCs and road traffic works →