It also have an own NPC Spawner Script inside where you can spawn NPCs for example inside Shops.
Installation:
Just download it and drang and Drop it into your esx folder.
Download: https://github.com/NequZ/esx_allrounddealer
Add start allrounddealer into your Server.cfg and thats it
You also have the Possibiliy to start it when the Server is allready running.
Just Drag and Drop it Type “Refresh” into your console and than type “start esx_allrounddealer” .
I hope you like it. Its my first Script. Feel free to use it
Hello everyone i have no idea on what is happening but it dont work for me. I haven’t any menu showing. I got no errors. Can someone show me his Config ? i probably made some mistakes. Thx for your help
Edit, i got an error only when i’m leaving the server !
If you sell drugs to the dealer using stasiek selldrugs once you’re done selling, the dealer simply walks off. I think he needs to be set into a freeze loop.
EDIT: Fixed it. Anyone else who wants to fix go to client/npc.lua and replace line 6 to 28 with this:
Citizen.CreateThread(function()
for _,v in pairs(koordinaten) do
RequestModel(GetHashKey(v[7]))
while not HasModelLoaded(GetHashKey(v[7])) do
Wait(1)
end
RequestAnimDict("mini@strip_club@idles@bouncer@base")
while not HasAnimDictLoaded("mini@strip_club@idles@bouncer@base") do
Wait(1)
end
ped = CreatePed(4, v[6],v[1],v[2],v[3], 3374176, false, true)
while true do -- added this
Citizen.Wait(200)
SetEntityHeading(ped, v[5])
FreezeEntityPosition(ped, true)
SetEntityInvincible(ped, true)
SetBlockingOfNonTemporaryEvents(ped, true)
TaskPlayAnim(ped,"mini@strip_club@idles@bouncer@base","base", 8.0, 0.0, -1, 1, 0, 0, 0, 0)
end -- extra end
end
end)