From f85f7722d8dd40cc8432690d096a67cee82589c9 Mon Sep 17 00:00:00 2001 From: xshady <54737754+xxshady@users.noreply.github.com> Date: Fri, 24 Jan 2025 16:30:27 +0300 Subject: [PATCH] fix LocalVehicle properties --- client/src/classes/LocalVehicle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/classes/LocalVehicle.cpp b/client/src/classes/LocalVehicle.cpp index 5136c1c94..7e7b8f210 100644 --- a/client/src/classes/LocalVehicle.cpp +++ b/client/src/classes/LocalVehicle.cpp @@ -40,10 +40,10 @@ extern js::Class localVehicleClass("LocalVehicle", &vehicleClass, nullptr, [](js tpl.BindToType(alt::IBaseObject::Type::LOCAL_VEHICLE); tpl.Property("model", ModelGetter, ModelSetter); - tpl.Property<&alt::ILocalPed::GetStreamingDistance>("streamingDistance"); - tpl.Property<&alt::ILocalPed::IsVisible, &alt::ILocalPed::SetVisible>("visible"); - tpl.Property<&alt::ILocalPed::GetScriptID>("scriptID"); - tpl.Property<&alt::ILocalPed::IsStreamedIn>("isStreamedIn"); + tpl.Property<&alt::ILocalVehicle::GetStreamingDistance>("streamingDistance"); + tpl.Property<&alt::ILocalVehicle::IsVisible, &alt::ILocalVehicle::SetVisible>("visible"); + tpl.Property<&alt::ILocalVehicle::GetScriptID>("scriptID"); + tpl.Property<&alt::ILocalVehicle::IsStreamedIn>("isStreamedIn"); tpl.GetByID(); tpl.StaticFunction("getByScriptID", &GetByScriptID);