Jump to content

help please I need this function that when you click on the image you give me a skin


xJulianGilx

Recommended Posts

Posted

addEventHandler ("onClientGUIClick", resourceRoot,function ()
local veh = getPedOccupiedVehicle(player)
    if isPedInVehicle(player) then
        if getPedOccupiedVehicleSeat(player) == 0 then
        end
    end

    if source == PlayerSkin1 then
     SetPlayerSkin(playerid, 277);
    end
end )

Posted (edited)

Next time use [ code] tags.

Replace "player" and "playerid" with "localPlayer".

Edited by NeXuS™
  • Thanks 1

6C73yFv.png

Did I help you?

Mmpe7Jm.gif


NeXuS™#0001

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...