{"hash":"0x6B12ED8C77E8567B","ns":"POPULATION","name":"GET_RANDOM_MODEL_FROM_POPULATION_SET","slug":"GET_RANDOM_MODEL_FROM_POPULATION_SET","official":true,"named":true,"luaName":"GetRandomModelFromPopulationSet","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"popSetHash","type":"Hash"},{"name":"flags","type":"int"},{"name":"p2","type":"Hash"},{"name":"p3","type":"BOOL"},{"name":"p4","type":"BOOL"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/POPULATION/GET_RANDOM_MODEL_FROM_POPULATION_SET","markdownUrl":"https://natives.borderlinerp.com/natives/POPULATION/GET_RANDOM_MODEL_FROM_POPULATION_SET.md","snippets":{"lua":"local retval = GetRandomModelFromPopulationSet(popSetHash, flags, p2, p3, p4, x, y, z)","luaInvoke":"local retval = Citizen.InvokeNative(0x6B12ED8C77E8567B, popSetHash, flags, p2, p3, p4, x, y, z, Citizen.ResultAsInteger())","js":"const retval = GetRandomModelFromPopulationSet(popSetHash, flags, p2, p3, p4, x, y, z);","jsInvoke":"const retval = Citizen.invokeNative('0x6B12ED8C77E8567B', popSetHash, flags, p2, p3, p4, x + 0.0000001, y + 0.0000001, z + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x6B12ED8C77E8567B, popSetHash, flags, p2, p3, p4, x, y, z);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason."]}}