mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-19 06:46:03 +01:00
Merge pull request #25 from bleachyblue/main
Departments duplication patch
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
author "Andyyy#7666, N1K0#0001"
|
author "Andyyy#7666, N1K0#0001"
|
||||||
description "ND Character Selection (DOJ Based)"
|
description "ND Character Selection (DOJ Based)"
|
||||||
version "2.2.1"
|
version "2.2.2"
|
||||||
|
|
||||||
fx_version "cerulean"
|
fx_version "cerulean"
|
||||||
game "gta5"
|
game "gta5"
|
||||||
|
|||||||
@@ -62,14 +62,19 @@ function SetDisplay(bool, typeName, bg, characters)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
started = false
|
||||||
|
|
||||||
function start(switch)
|
function start(switch)
|
||||||
TriggerServerEvent("ND:GetCharacters")
|
TriggerServerEvent("ND:GetCharacters")
|
||||||
TriggerServerEvent("ND_CharacterSelection:checkPerms")
|
|
||||||
if switch then
|
if switch then
|
||||||
local ped = PlayerPedId()
|
local ped = PlayerPedId()
|
||||||
SwitchOutPlayer(ped, 0, 1)
|
SwitchOutPlayer(ped, 0, 1)
|
||||||
FreezeEntityPosition(ped, true)
|
FreezeEntityPosition(ped, true)
|
||||||
SetEntityVisible(ped, false, 0)
|
SetEntityVisible(ped, false, 0)
|
||||||
|
if not started then
|
||||||
|
TriggerServerEvent("ND_CharacterSelection:checkPerms")
|
||||||
|
started = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
if config.characterSelectionAopDisplay then
|
if config.characterSelectionAopDisplay then
|
||||||
SendNUIMessage({
|
SendNUIMessage({
|
||||||
|
|||||||
Reference in New Issue
Block a user