Skip to content

Commit

Permalink
Merge pull request #14 from Byte-Labs-Studio/mastermind
Browse files Browse the repository at this point in the history
Outfit PR
  • Loading branch information
complexza authored Aug 13, 2024
2 parents 18cd882 + 7e694c3 commit 64a970d
Show file tree
Hide file tree
Showing 12 changed files with 1,516 additions and 1,486 deletions.
21 changes: 21 additions & 0 deletions data/commands.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
lib.addCommand('appearance', {
help = 'Open the appearance menu',
params = {
{
name = 'target',
type = 'playerId',
help = 'Target player\'s server id',
},
{
name = 'type',
type = 'string',
help = 'appearance | outfits | tattoos | clothes | accessories | face | makeup | heritage',
optional = true
}
},
restricted = 'group.admin'
}, function(source, args, raw)
local target = args.target or source
local type = args.type or 'appearance'
TriggerClientEvent('bl_appearance:client:open', target, type)
end)
10 changes: 8 additions & 2 deletions fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ description 'Customize your virtual persona with precision using the Byte Labs A
repository 'https://github.com/Byte-Labs-Studio/bl_appearance'

ui_page 'build/index.html'
--ui_page 'http://localhost:3001/' --for dev
-- ui_page 'http://localhost:3000/' --for dev

server_scripts {
'data/config.lua',
'data/commands.lua',
'dist/server/**/*.js'
}

Expand All @@ -22,7 +23,12 @@ shared_scripts {
}

client_scripts {
'data/*',
'data/blacklist.lua',
'data/config.lua',
'data/menus.lua',
'data/models.lua',
'data/tattoos.lua',
'data/zones.lua',
'dist/client/**/*.js'}

files {
Expand Down
Loading

0 comments on commit 64a970d

Please sign in to comment.