-- Define a table with color names mapped to their corresponding palette indices for phone colors
local PhoneColors = {
Blue = 0,
Green = 1,
Red = 2,
Orange = 3,
Grey = 4,
Purple = 5,
Pink = 6
}
-- Retrieve the current player ped
local playerPed = PlayerPedId()
-- Set the phone color of the player's ped to Green using the corresponding index from the PhoneColors table
SetPedPhonePaletteIdx(playerPed, PhoneColors.Green)