Coder Social home page Coder Social logo

brp-fivem-appearance's Introduction

brp-fivem-appearance

This is something I made for my server a couple months ago I take no credit for the UI all I've done is make the LUA side with clothing shops, barber shops, tatto shops and saved outfits the original post was from https://forum.cfx.re/t/release-fivem-appearance/2438537

Dependencies

Conflicts

This rescorce is meant to replace these two so it cannot be used while these rescorces are running

  • esx_skin
  • skinchanger

Setup

  • Run Outfits.sql

If you'r using esx_multicharacter or most rescorces using esx_skin or skinchanger this should work out of the box thansk to edits made by Linden however if it doeas not you can use the trigger below on the client side after the player loads in order to set their skin

ESX.TriggerServerCallback('fivem-appearance:getPlayerSkin', function(appearance)
    exports['fivem-appearance']:setPlayerAppearance(appearance)
end)

Server Config

ensure fivem-appearance
ensure brp-fivem-appearance
setr fivem-appearance:locale "en"

Support Me

Preview

brp-fivem-appearance's People

Contributors

0pax avatar agentofdeath avatar dunak-debug avatar fbfezz avatar thelindat avatar ziggyjojo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

brp-fivem-appearance's Issues

Character doesn't show when first spawn if not using command

using command /reloadskin fix this issue, but i tried this instead using command and not working at all.

local playerLoaded = false
local firstSpawn = true
AddEventHandler('esx:onPlayerSpawn', function()
    Citizen.CreateThread(function()
        while not playerLoaded do
            Citizen.Wait(100)
        end

        if firstSpawn then
          ESX.TriggerServerCallback('fivem-appearance:getPlayerSkin', function(appearance)
               exports['fivem-appearance']:setPlayerAppearance(appearance)
          end)
          firstSpawn = false
        end
    end)
end)

Multicharacter

So I have tried so many things and wasted so many hours upon adding fivem-appearance to my server. I use esx_multicharacter also. I cannot get fivem-appearance to work with esx_multicharacter. Whenever I create a new character nothing pops up. The identity menu closes and when fivem-appearance should open, nothing opens.
image
It is horrible as I was trying to add for so long. A few months ago, maybe a year it worked flawlessly but now it doesn't.

Jobs

About jobs that call the skin to have players clothes?

function OpenCloakroomMenu()
	ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'cloakroom', {
		title    = _U('cloakroom'),
		align    = 'top-left',
		elements = {
			{label = _U('ems_clothes_civil'), value = 'citizen_wear'},
			{label = _U('ems_clothes_ems'), value = 'ambulance_wear'},
	}}, function(data, menu)
		if data.current.value == 'citizen_wear' then
			ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
				TriggerEvent('skinchanger:loadSkin', skin)
				isOnDuty = false

				for playerId,v in pairs(deadPlayerBlips) do
					RemoveBlip(v)
					deadPlayerBlips[playerId] = nil
				end
			end)
		elseif data.current.value == 'ambulance_wear' then
			ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin, jobSkin)
				if skin.sex == 0 then
					TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_male)
				else
					TriggerEvent('skinchanger:loadClothes', skin, jobSkin.skin_female)
				end

				isOnDuty = true
				TriggerEvent('esx_ambulancejob:setDeadPlayers', deadPlayers)
			end)
		end

		menu.close()
	end, function(data, menu)
		menu.close()
	end)
end```

There is some solution for this ?

Using esx_tattooshop

Hello! I'm having an inconvenience when using esx_tattooshop, when someone enters the tattoo shop they are supposed to take off their clothes but the clothes stay on. Sorry for the bad English

I can't save my outfit

When i go to save outfit and save my outfit on idk any name "Novo", "adadad" it pops out error in consol and its not saved i put sql everything like it says other then that everything is working perfect
image

Open clothing menu

I just downloaded this and the barber shops work but the clothing stores dont is there reason for that? i dont get no error

2 Bugs

Whenever I try to save an outfit it saves as [object Object]. And whenever you spawn back in you spawn as a MP Female ped

Can not use shops.

If i try to use any form of nh context menu it gives me this error. Im sorry, if im doing something wrong, but i never used it..
First option (for change clothes work) other options give me this errors.

Thank you.
obrazek

NeroHiro’s Context Menu & Keyboard are no longer available, so I can't run this.

Is there any possible way to download NeroHiro’s Context Menu/Keyboard or somehow convert this to a default menu or use a different menu that I can download? I am not much of a developer so I don't know how to do all that. The Context Menu and Keyboard are no longer available for download. When I tried running this resource without them, nothing happens (which is expected I assume since its trying to use a resource I don't have).

Any help would be appreciated. Thanks.

nh-context error

Immagine 2021-08-06 131608

I have already modified the code:
RegisterNUICallback("dataPost", function(data, cb)
SetNuiFocus(false)
TriggerEvent(data.event, data.args, data.arg2, data.arg3)
cb('ok')
end)

I need a little help here, added a clothing menu for the fire department and now the barber is hunting me 😨

Hi there,

Much thank you for this awesome resource! Good stuff, nicely documented, I love it. 🥇
Only one minor issue occurred, I've added a clothing menu for the fire department by duplicating the pd values and change them to fd, all was smooth sailing, and the fire department has now its own marker and clothes are listed they work.

But now the issue is that the notification of the barber is creeping me, it won't get out of my sight. What did I forget?

IMG_2522
IMG_2523

Thank you for your consideration to answer my question here.

Possibility to hide Peds menu for the store

Hi,

I have restricted by permissions who can use peds and not, and i assign them via command. A good improvement for that script can be to hide the ped menu, to customize the shops and char creation (Can be sex inside the creation :))

Nice script btw

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.