GetPedHeadOverlayData
клиент GET_PED_HEAD_OVERLAY_DATA
c
BOOL GET_PED_HEAD_OVERLAY_DATA(Ped ped, int index, int* overlayValue, int* colourType, int* firstColour, int* secondColour, float* overlayOpacity);A getter for SET_PED_HEAD_OVERLAY and _SET_PED_HEAD_OVERLAY_COLOR natives.
Примеры
lua
-- getting beard overlay data
local success, overlayValue, colourType, firstColour, secondColour, overlayOpacity = GetPedHeadOverlayData(PlayerPedId(), 1)
if success then
-- incrementing value
SetPedHeadOverlay(PlayerPedId(), 1, overlayValue + 1, overlayOpacity)
endПараметры
- ped: The target ped
- index: Overlay index
- overlayValue: Overlay value pointer
- colourType: Colour type pointer
- firstColour: First colour pointer
- secondColour: Second colour pointer
- overlayOpacity: Opacity pointer
Возвращает
Returns ped's head overlay data.
Страница собрана автоматически из native-decls/GetPedHeadOverlayData.md. Нашли ошибку — поправьте исходный файл.