{"hash":"0x2F8AF0E82773A171","ns":"TASK","name":"TASK_DRIVE_BY","slug":"TASK_DRIVE_BY","official":true,"named":true,"luaName":"TaskDriveBy","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"driverPed","type":"Ped"},{"name":"targetPed","type":"Ped"},{"name":"targetVehicle","type":"Vehicle"},{"name":"targetX","type":"float"},{"name":"targetY","type":"float"},{"name":"targetZ","type":"float"},{"name":"distanceToShoot","type":"float"},{"name":"pedAccuracy","type":"int"},{"name":"p8","type":"BOOL"},{"name":"firingPattern","type":"Hash"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x2F8AF0E82773A171","gtaJhash":"0x2B84D1C4","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/TASK/TASK_DRIVE_BY","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/TASK_DRIVE_BY.md","snippets":{"lua":"TaskDriveBy(driverPed, targetPed, targetVehicle, targetX, targetY, targetZ, distanceToShoot, pedAccuracy, p8, firingPattern)","luaInvoke":"Citizen.InvokeNative(0x2F8AF0E82773A171, driverPed, targetPed, targetVehicle, targetX, targetY, targetZ, distanceToShoot, pedAccuracy, p8, firingPattern)","js":"TaskDriveBy(driverPed, targetPed, targetVehicle, targetX, targetY, targetZ, distanceToShoot, pedAccuracy, p8, firingPattern);","jsInvoke":"Citizen.invokeNative('0x2F8AF0E82773A171', driverPed, targetPed, targetVehicle, targetX + 0.0000001, targetY + 0.0000001, targetZ + 0.0000001, distanceToShoot + 0.0000001, pedAccuracy, p8, firingPattern);","csharp":"Function.Call((Hash)0x2F8AF0E82773A171, driverPed, targetPed, targetVehicle, targetX, targetY, targetZ, distanceToShoot, pedAccuracy, p8, firingPattern);","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."]}}