Jump to content

I want if I press hud dutyadmin to change skin How


zero00

Recommended Posts

I want if I press hud dutyadmin to change skin How do it
https://j.top4top.io/p_2807xmwjt1.png
and i cant get old skin how do it plz help

function adminDutyAdmin(thePlayer)
    if exports.integration:isPlayerTrialAdmin(thePlayer) then
    local adminduty = getElementData(thePlayer, "duty_admin")
    local username = getPlayerName(thePlayer)
    if not getElementData ( thePlayer, "duty_admin" ) then
    setElementData( thePlayer, "duty_admin", true )
    outputAdminMessage("online"..getPlayerName(thePlayer).." admin")
    setElementModel(thePlayer, 217)
    elseif getElementData ( thePlayer, "duty_admin" ) then
    setElementData( thePlayer, "duty_admin", false )
    outputAdminMessage("offline "..getPlayerName(thePlayer).." admin")
    return setElementModel(thePlayer, 186)
    end
    end
end
addCommandHandler("adminDuty", adminDutyAdmin) 
addCommandHandler("ad", adminDutyAdmin) 

Link to comment

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...