[release] ESX Strippers for Vanilla Unicorn

Copy and paste this one to your main.lua

-----------------------------------------------------------------UNICORN---------------------------------------------------------------------------
Citizen.CreateThread(function()
    RequestModel(GetHashKey("s_f_y_stripperlite"))

	while not HasModelLoaded(GetHashKey("s_f_y_stripperlite")) do
    Wait(10)
	end

	if Config.EnableStripclub then
		for _, item in pairs(Config.Locations23) do
			local npc = CreatePed(1, 0x5C14EDFA, item.x, item.y, item.z, item.heading, false, true)
		
			FreezeEntityPosition(npc, true)	
			SetEntityHeading(npc, item.heading)
			SetEntityInvincible(npc, true)
			SetBlockingOfNonTemporaryEvents(npc, true)
			RequestAnimDict("mini@strip_club@pole_dance@pole_dance3")
			while not HasAnimDictLoaded("mini@strip_club@pole_dance@pole_dance3") do
			Citizen.Wait(100)
			end
		
			local netScene3 = CreateSynchronizedScene(item.x, item.y, item.z, vec3(0.0, 0.0, 0.0), 2)
			TaskSynchronizedScene(npc, netScene3, "mini@strip_club@pole_dance@pole_dance3", "pd_dance_03", 1.0, -4.0, 261, 0, 0)
			SetSynchronizedSceneLooped(netScene, 1)
			SetModelAsNoLongerNeeded(model)
		end
	end
end)

Citizen.CreateThread(function()
    RequestModel(GetHashKey("a_f_y_topless_01"))

	while not HasModelLoaded(GetHashKey("a_f_y_topless_01")) do
    Wait(10)
	end

	if Config.EnableStripclub then
		for _, item in pairs(Config.Locations24) do
			local npc = CreatePed(1, 0x9CF26183, item.x, item.y, item.z, item.heading, false, true)
			local npc2 = CreatePed(1, 0x9CF26183, item.x, item.y, item.z, item.heading, false, true)
			local ad = "mini@strip_club@lap_dance_2g@ld_2g_p1"
		
			RequestAnimDict(ad)
			while not HasAnimDictLoaded(ad) do
			Citizen.Wait(1000)
			end
			
			local netScene = CreateSynchronizedScene(item.x, item.y, item.z, vec3(0.0, 0.0, 0.0), 2)
			TaskSynchronizedScene(npc, netScene, ad, "ld_2g_p1_s1", 1.0, -4.0, 261, 0, 0)
			TaskSynchronizedScene(npc2, netScene, ad, "ld_2g_p1_s2", 1.0, -4.0, 261, 0, 0)
			FreezeEntityPosition(npc, true)	
			FreezeEntityPosition(npc2, true)	
			SetEntityHeading(npc, item.heading)
			SetEntityHeading(npc2, item.heading)
			SetEntityInvincible(npc, true)
			SetEntityInvincible(npc2, true)
			SetBlockingOfNonTemporaryEvents(npc, true)
			SetBlockingOfNonTemporaryEvents(npc2, true)
			SetSynchronizedSceneLooped(netScene, 1)
			SetModelAsNoLongerNeeded(model)
		end
	end
end)

-----------------------------------------------------------------UNICORNEND---------------------------------------------------------------------------

copy and paste this one at the end of your config.lua

Config.Locations23 = { -- Unicorn Girl 
	{ x = 104.66, y = -1294.46, z = 29.26, heading = 287.12 }	-- Girl1
	
}

Config.Locations24 = { -- Unicorn Girl 
	{ x = 103.21, y = -1292.59, z = 29.26, heading = 296.21 }	-- Girl2
	
}

Now it should work. You just need to adjust the coords of the girls, that’s it.

Could you explain how you got the coords for the right position? Im still testing all the time, but its really hard to get her perfect at the pole, even using admin coords. It would help if I could use the pole animation, but I can find anyone.

Thanks in advance!

1 Like

Would you be so kind to post the pole coords? Im trying but even showing me the coords I dont get it.


A little more finishing, looks better.

Hello what is your version of esx

my scripts do not use esx.

Have you converted this from esx?

yes, to your scripts

Are you sharing your version?

1 Like

No, this is intellectual property

Understood

Does anyone here knows why she stay freeze in a position?
@Galatimus @JordiCool

image

2 Likes

Yes, of course it’s very simple

omg dude, so you are that part of the community right?

To everyone who is looking to have this without restarting the resource over and over, ill leave the fixed version, just go to GitHub and get the fork I submitted, or wait until it gets merged.

2 Likes

Haven’t accessed FiveM related stuff in a good long while, thanks all who’ve been helping others with this script, I wasn’t all that experienced with programming in fivem at the time. I merged his request, hopefully that helps a lot of y’all who’ve been having issues.

Thanks!

2 Likes

Do they give lap dances as well in the high rollers room or just dance? Either way it’s nice but in the one I have right now, you can request a topless lap dance (poor as it may be…). Adding dancers around the bar on top of that would just be outstanding.

which one you have where it gave you a topless lapdance?

1 Like

How do I get this to work for me? I put it in the esx folder an put it in the server.cfg anything else?

This script not leaked or yes?

I am looking for a way to create a harvest script, process it and sell it for example to Fram wine at unicorn?