AdmWarn for fivem_appearance

This is for Wasabi's fivem_appearance script:

Go to fivem_appearance > server > server.lua

Find the skin command and replace it with this:

ESX.RegisterCommand('skin', 'admin', function(xPlayer, args, showError)
    -- og stuff
    args.playerId.triggerEvent('fivem-appearance:skinCommand')

    TriggerEvent("shawn_rpchat:admwarn:forceskin", xPlayer.source, args.playerId.source)
end, false, {
    help = Strings.skin_command_help,
    validate = true,
    arguments = {
        {name = 'playerId', help = Strings.skin_command_arg_help, type = 'player'}
    }
})

Last updated