mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
Reverted some changes later to be fixed
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
author "Andyyy#7666, N1K0#0001"
|
||||
description "ND Character Selection (DOJ Based)"
|
||||
version "2.2.0"
|
||||
version "2.2.1"
|
||||
|
||||
fx_version "cerulean"
|
||||
game "gta5"
|
||||
|
||||
@@ -13,6 +13,7 @@ function startChangeAppearence()
|
||||
props = true,
|
||||
tattoos = false
|
||||
}
|
||||
|
||||
exports["fivem-appearance"]:startPlayerCustomization(function(appearance)
|
||||
if (appearance) then
|
||||
local ped = PlayerPedId()
|
||||
@@ -113,18 +114,19 @@ AddEventHandler("ND:returnCharacters", function(characters)
|
||||
SetDisplay(true, "ui", background, characters)
|
||||
end)
|
||||
|
||||
-- [TODO] to be implemented properly later
|
||||
-- Set the player to creating the ped if they haven't already.
|
||||
RegisterNetEvent("ND:setCharacter")
|
||||
AddEventHandler("ND:setCharacter", function(character)
|
||||
if next(character.clothing) == nil then
|
||||
changeAppearence = true
|
||||
else
|
||||
changeAppearence = false
|
||||
local ped = PlayerPedId()
|
||||
exports["fivem-appearance"]:setPedTattoos(ped, character.clothing.tattoos)
|
||||
exports["fivem-appearance"]:setPedAppearance(ped, character.clothing.appearance)
|
||||
end
|
||||
end)
|
||||
-- RegisterNetEvent("ND:setCharacter")
|
||||
-- AddEventHandler("ND:setCharacter", function(character)
|
||||
-- if next(character.clothing) == nil then
|
||||
-- changeAppearence = true
|
||||
-- else
|
||||
-- changeAppearence = false
|
||||
-- local ped = PlayerPedId()
|
||||
-- exports["fivem-appearance"]:setPedTattoos(ped, character.clothing.tattoos)
|
||||
-- exports["fivem-appearance"]:setPedAppearance(ped, character.clothing.appearance)
|
||||
-- end
|
||||
-- end)
|
||||
|
||||
-- Selecting a player from the iu.
|
||||
RegisterNUICallback("setMainCharacter", function(data)
|
||||
|
||||
Reference in New Issue
Block a user