feat(api): expand ModelExtras API with comprehensive feature coverage and JSONC exports - #341
Open
CanerKaraca23 wants to merge 1 commit into
Open
CanerKaraca23 wants to merge 1 commit into
CanerKaraca23 wants to merge 1 commit into
Conversation
CanerKaraca23
force-pushed
the
feat/api-comprehensive-expansion
branch
from
September 18, 2026 16:35
8452725 to
de2e936
Compare
Collaborator
Author
|
It fails because other PRs needs to be merged before. |
CanerKaraca23
force-pushed
the
feat/api-comprehensive-expansion
branch
from
September 18, 2026 22:03
b596a08 to
0a6f079
Compare
… and JSONC exports
CanerKaraca23
force-pushed
the
feat/api-comprehensive-expansion
branch
from
September 18, 2026 22:08
0a6f079 to
f0eb4b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request significantly expands the public C-ABI exported API (
ModelExtrasAPI.handModelExtrasAPI.cpp) to provide 100% feature coverage and complete JSONC vehicle configuration access for third-party ASI plugins and external scripts.Key Additions (161 Total Exported Functions)
JSONC Data & Feature Configuration Accessors:
HasData,GetModelName,GetHandlingId,GetFlags,GetBrakePadSoundOverride,GetDoorChimeSoundOverrideHasSirens,HasCarcols,HasExhausts,HasRemap,HasDirt,HasGauges,HasPlates,HasLights,HasRollbackBed,HasRotateDoors,HasSlideDoors,HasRoof,HasSpoiler,HasBackfire,HasWheelHubs,HasExtraWheels,HasBikeChain,HasLeds,HasClock,HasSpotlightsGetLightColorOn,GetLightColorOff,HasLightType,GetLightHighBeamPointLightMul,GetLightHighBeamShadowMulGetGaugeRpmMax,GetGaugeRpmRot,GetGaugeRpmRotMax,GetGaugeSpeedMul,GetGaugeSpeedRotMaxGetPlateText,GetPlateFontColor,GetPlateBgColor,GetPlateShadowColor,GetPlateOutlineColor,GetPlateFormatTypeGetSirenCount,GetSirenModeCount,GetSirenPointCount,GetSirenPointData,GetSpotlightBeamColor,GetSpotlightBeamRadiusGetSlideDoorAxis,GetSlideDoorMaxTravel,GetRotateDoorAxis,GetRotateDoorMaxAngle,GetRollbackBedSlideAxis,GetRollbackBedSlideMax,GetRollbackBedTiltAxis,GetRollbackBedTiltMaxReal-time Vehicle Feature & Lighting State Getters:
IsVehicleFeatureActive(by feature matrix ID),IsLightTypeActiveIsLongLightsOn(CVehicle*)GetIndicatorState(CVehicle*),SetIndicatorState(CVehicle*, int)GetVehiclePlateText(CVehicle*)GetActiveRemapIndex(CVehicle*),GetTotalRemaps(CVehicle*),GetTextureNames(int, ...)GetPedColorVariation(CPed*, int)GetCarColorVariation(CVehicle*, int)Core & Material Pipeline Utilities:
FindDummies(CVehicle*),ResetMaterials(CVehicle*)GetMaterialColor(CVehicle*, int, unsigned int*, unsigned int*)GetMaterialEmissive(CVehicle*, int, float*)RegisterCorona,RegisterDirectionalCorona,RegisterPointLight,RegisterHeadlightPointLight,RegisterDirectionalShadowCompatibility & Safety
ModelExtrasAPIclients.__declspec(dllexport)extern "C" wrappers..hdeclarations and.cppdefinitions (161/161 matched).