{"hash":"0xF383E96C4904DF0C","ns":"VOLUME","name":"_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY","slug":"_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY","official":false,"named":true,"luaName":"CreateVolumeLockAttachedToEntity","game":"rdr3","apiset":"client","returnType":"Volume","params":[{"name":"entity","type":"Entity"},{"name":"radius","type":"float"},{"name":"flag","type":"int"},{"name":"p3","type":"Any"}],"summary":"","descriptions":[{"source":"alloc8or","format":"text","body":"Params: p3 is always 0"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VOLUME/_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/VOLUME/_CREATE_VOLUME_LOCK_ATTACHED_TO_ENTITY.md","snippets":{"lua":"local retval = CreateVolumeLockAttachedToEntity(entity, radius, flag, p3)","luaInvoke":"local retval = Citizen.InvokeNative(0xF383E96C4904DF0C, entity, radius, flag, p3, Citizen.ResultAsInteger())","js":"const retval = CreateVolumeLockAttachedToEntity(entity, radius, flag, p3);","jsInvoke":"const retval = Citizen.invokeNative('0xF383E96C4904DF0C', entity, radius + 0.0000001, flag, p3, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0xF383E96C4904DF0C, entity, radius, flag, p3);","notes":["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.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}