the character model “csb_dixon” can not be loaded … this is the model of Dj Dixon … what does your config look like? Of course, only 1 DJ in the config should be active
Config.EnableSolomun = true -- If true spawn Solomun at Nightclub DJ
Config.EnableDixon = false -- If true spawn Dixon at Nightclub DJ
hm yes … have just tested both djs on the server and both are loaded and displayed without problems … have you ever deleted the server and client cache?
the script is client side and now and then it happens that the Npcs interrupt their animation just … I try if I have a little more time to fix this … as admin you can chat in the command /restart peds enter so the script restarts and reset all Npcs for all clients and the animations should be run again. Exception are all the Npcs are in the shops … these have no animations!
Citizen.CreateThread(function()
RequestModel(GetHashKey("a_f_y_juggalo_01"))
while not HasModelLoaded(GetHashKey("a_f_y_juggalo_01")) do
Wait(1)
end
if Config.EnableNightclubs then
for _, item in pairs(Config.Locations2) do
local npc = CreatePed(1, 0xdb134533, item.x, item.y, item.z, item.heading, false, true)
FreezeEntityPosition(npc, true)
SetEntityHeading(npc, item.heading)
SetEntityInvincible(npc, true)
SetBlockingOfNonTemporaryEvents(npc, true)
--SetPedCanPlayAmbientAnims(npc, true)
RequestAnimDict("mini@strip_club@idles@stripper")
while not HasAnimDictLoaded("mini@strip_club@idles@stripper") do
Wait(1)
end
TaskPlayAnim(npc,"mini@strip_club@idles@stripper","stripper_idle_01",1.0, 0.0, -1, 1, 10.0, false, false, false)
end
end
end)
Thanks for the tip is sometimes easier than you think … I have now made some changes that should not interrupt the animations … also I have the problem fixed the player by attacking the npcs in some situations could interrupt the animation ( eg grenades, etc.)
I will update the script in the next hour
while (not HasAnimDictLoaded("anim@amb@nightclub@peds@")) do
Citizen.Wait(1000)
end
Citizen.Wait(200)
TaskPlayAnim(npc,"anim@amb@nightclub@peds@","amb_world_human_partying_female_partying_beer_base",1.0, 1.0, -1, 9, 1.0, 0, 0, 0)
Hello
a large part of the npcs you will find …http://ragepluginhook.net/PedModels.aspx then you have everything you need if I have the days some time I’ll see if I can integrate variations in the script
for each npc then just replace the hash and model …
Citizen.CreateThread(function()
RequestModel(GetHashKey("a_f_y_juggalo_01"))
while not HasModelLoaded(GetHashKey("a_f_y_juggalo_01")) do
Wait(1)
end
if Config.EnableNightclubs then
for _, item in pairs(Config.Locations2) do
local npc = CreatePed(4, 0xdb134533, item.x, item.y, item.z, item.heading, false, true)