We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried using the GetVariantProp native but it always returns 0 for the three returned values (nameHash, enumValue, anchorPoint)
Getting the actual prop variant
mp_m_freemode_01
function GetAltPropVariationData(ped, propId) local res = {} local prop = 0 for prop=0, GetNumberOfPedPropDrawableVariations(ped, propId), 1 do print(prop) local propHashName = GetHashNameForProp(PlayerPedId(), propId, prop, 0) local maxVariations = GetShopPedApparelVariantPropCount(propHashName) if (maxVariations > 0) then print("Got " .. maxVariations .. " variants") for i = 1, maxVariations, 1 do local nameHash --[[ Hash ]], enumValue --[[ integer ]], anchorPoint --[[ integer ]] = GetVariantProp(propHashName, i) table.insert(res, { initialProp = prop, nameHash = nameHash, enumValue = enumValue, anchorPoint = anchorPoint }) end end end return json.encode(res) end return GetAltPropVariationData(PlayerPedId(), 0)
Slight inconvenience
FiveM, Natives, ScRT: Lua
Tested in b3258 and b1604 - FXVersion 9823
Note that the GetShopPedApparelVariantPropCount function works as sometimes, maxVariations is > 0 and the GetVariantProp is called
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
I tried using the GetVariantProp native but it always returns 0 for the three returned values (nameHash, enumValue, anchorPoint)
Expected result
Getting the actual prop variant
Reproduction steps
mp_m_freemode_01
Importancy
Slight inconvenience
Area(s)
FiveM, Natives, ScRT: Lua
Specific version(s)
Tested in b3258 and b1604 - FXVersion 9823
Additional information
Note that the GetShopPedApparelVariantPropCount function works as sometimes, maxVariations is > 0 and the GetVariantProp is called
The text was updated successfully, but these errors were encountered: