{"hash":"0x4C57F27D1554E6B0","ns":"PED","name":"_SHOOT_TRIGGER_AT_COORDS","slug":"_SHOOT_TRIGGER_AT_COORDS","official":false,"named":true,"luaName":"ShootTriggerAtCoords","game":"rdr3","apiset":"client","returnType":"Any","params":[{"name":"ped","type":"Ped"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"},{"name":"p4","type":"int"},{"name":"p5","type":"float"},{"name":"p6","type":"int"},{"name":"p7","type":"float"}],"summary":"Triggers a gunshot","descriptions":[{"source":"alloc8or","format":"text","body":"Triggers a gunshot\nParams: p5 = -1 in R* Scripts"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_SHOOT_TRIGGER_AT_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_SHOOT_TRIGGER_AT_COORDS.md","snippets":{"lua":"local retval = ShootTriggerAtCoords(ped, x, y, z, p4, p5, p6, p7)","luaInvoke":"local retval = Citizen.InvokeNative(0x4C57F27D1554E6B0, ped, x, y, z, p4, p5, p6, p7, Citizen.ResultAsInteger())","js":"const retval = ShootTriggerAtCoords(ped, x, y, z, p4, p5, p6, p7);","jsInvoke":"const retval = Citizen.invokeNative('0x4C57F27D1554E6B0', ped, x + 0.0000001, y + 0.0000001, z + 0.0000001, p4, p5 + 0.0000001, p6, p7 + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x4C57F27D1554E6B0, ped, x, y, z, p4, p5, p6, p7);","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."]}}