{"hash":"0xA13028E22564A1BD","ns":"VEHICLE","name":"_SET_VEHICLE_STOP_DISTANCE_BUFFER","slug":"_SET_VEHICLE_STOP_DISTANCE_BUFFER","official":false,"named":true,"luaName":"SetVehicleStopDistanceBuffer","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"vehicle","type":"Vehicle"},{"name":"bufferDistance","type":"float"}],"summary":"Adds a forward buffer to the AI stopping distance for a specific vehicle.","descriptions":[{"source":"alloc8or","format":"text","body":"Adds a forward buffer to the AI stopping distance for a specific vehicle.\nImportant for long vehicles such as wagons with draft horses. The AI normally calculates stopping distance from the front bounds of the vehicle; this extends that forward collision/stopping sphere."},{"source":"vorp","format":"text","body":"Sets the stop distance of a vehicle when there something in it's way that forces it to stop or sets the view distance of the vehicle making it stop at a distance"}],"examples":[],"aliases":["_SET_VEHICLE_STOP_DISTANCE"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_VEHICLE_STOP_DISTANCE_BUFFER","markdownUrl":"https://natives.borderlinerp.com/natives/VEHICLE/_SET_VEHICLE_STOP_DISTANCE_BUFFER.md","snippets":{"lua":"SetVehicleStopDistanceBuffer(vehicle, bufferDistance)","luaInvoke":"Citizen.InvokeNative(0xA13028E22564A1BD, vehicle, bufferDistance)","js":"SetVehicleStopDistanceBuffer(vehicle, bufferDistance);","jsInvoke":"Citizen.invokeNative('0xA13028E22564A1BD', vehicle, bufferDistance + 0.0000001);","csharp":"Function.Call((Hash)0xA13028E22564A1BD, vehicle, bufferDistance);","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."]}}