{"hash":"0xA273060E","ns":"CFX","name":"GET_VEHICLE_TYPE","slug":"GET_VEHICLE_TYPE","official":true,"named":true,"luaName":"GetVehicleType","game":"cfx","apiset":"shared","returnType":"char*","params":[{"name":"vehicle","type":"Vehicle","description":"The vehicle's entity handle."}],"returnsDescription":"If the entity is a vehicle, the vehicle type. If it is not a vehicle, the return value will be null.","summary":"Returns the type of the passed vehicle.","descriptions":[{"source":"cfx","format":"md","body":"Returns the type of the passed vehicle.\n\nFor client scripts, reference the more detailed [GET_VEHICLE_TYPE_RAW](#\\_0xDE73BC10) native.\n\n### Vehicle types\n\n*   automobile\n*   bike\n*   boat\n*   heli\n*   plane\n*   submarine\n*   trailer\n*   train"}],"examples":[],"aliases":[],"enums":[],"related":[],"sources":["cfx"],"doc":2,"url":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_TYPE","markdownUrl":"https://natives.borderlinerp.com/natives/CFX/GET_VEHICLE_TYPE.md","snippets":{"lua":"local retval = GetVehicleType(vehicle)","luaInvoke":"local retval = Citizen.InvokeNative(0xa273060e, vehicle, Citizen.ResultAsString())","js":"const retval = GetVehicleType(vehicle);","jsInvoke":"const retval = Citizen.invokeNative('0xa273060e', vehicle, Citizen.returnResultAnyway(), Citizen.resultAsString());","csharp":"string retval = Function.Call<string>((Hash)0xa273060e, vehicle);","notes":[]}}