Skip to content

Commit

Permalink
fix LocalVehicle properties
Browse files Browse the repository at this point in the history
  • Loading branch information
xxshady authored Jan 24, 2025
1 parent 958fe92 commit f85f772
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/classes/LocalVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<alt::IBaseObject::Type::LOCAL_VEHICLE>();
tpl.StaticFunction("getByScriptID", &GetByScriptID);
Expand Down

0 comments on commit f85f772

Please sign in to comment.