[Release] Fishy's Poledance

Introducing
Fishy’s Poledance

I think the image says enough to give a description xD

Credits to: Loffe All code belongs to him.
You can download his script here

Preview: Desktop 2021.02.21 - 16.41.14.03

DL:fishy_poledance.zip (1.6 KB)

7 Likes

please give credit to the original creator
your script


original creator

creator code



image

same code

Thanks i will!

1 Like

how i can change position of blips ? bc if i try to change it with cord blips don’t move

2 Likes

The blips are attached to the locations in the config, you must separate them.

Is it possible to have it work without ESX?

Is there a VRP version of this?

You can replace the ESX.ShowFloatingHelpNotification to any marker you want!, anything besides that it’s standalone:)

Awesome! - Thanks :blush:

2 Likes

Tried implementing this today. On my poles I don’t seem to get any prompt to press E to dance on the poles. Any ideas?

1 Like

Probably because you dont have the ESX.FloatingHelpNotification on your es_extended try changing the prompt for something else

what i need to do ?

You don’t have the function ShowFloatingHelpNotification on your es_extended/extendedmode

Try adding in es_extended / client / functions.lua this:

ESX.ShowFloatingHelpNotification = function(msg, coords)
    AddTextEntry('esxFloatingHelpNotification', msg)
    SetFloatingHelpTextWorldPosition(1, coords)
    SetFloatingHelpTextStyle(1, 1, 2, -1, 3, 0)
    BeginTextCommandDisplayHelp('esxFloatingHelpNotification')
    EndTextCommandDisplayHelp(2, false, false, -1)
end 

Hey, i wanted to set more Poledances, because i have Allhousing and would like to have a DancePole in my House. How can i make more then the 3 Places to dance? And what do i have to look out? thx

Position would be x -886.15 y -348.84 z 61.42

On the config lua

Config['PoleDance'] = { 
    ['Enabled'] = true,
    ['Locations'] = {
        {['Position'] = vector3(112.60, -1286.76, 28.56), ['Number'] = '3'},
        {['Position'] = vector3(104.18, -1293.94, 29.26), ['Number'] = '1'},
        {['Position'] = vector3(102.24, -1290.54, 29.26), ['Number'] = '2'},
        {['Position'] = vector3(-886.15 , -348.84, 61.42), ['Number'] = '4'}
    }
}

Changed it a bit for ESX, So you can choose what animation to do

ESX = nil
TriggerEvent('esx:getsharedobject', function(obj) ESX = obj end)

FishyDEV = false

local value = nil 
Citizen.CreateThread(function()
    while true do
        local _sleep = 1000
        local _char = PlayerPedId()
        local _charPos = GetEntityCoords(_char)
        for k, v in pairs(Config['PoleDance']['Locations']) do
            if #(_charPos - v['Position']) < 1.5 then
                _sleep = 0
                if IsControlJustReleased(0, 51) and not FishyDEV then
                    ESX.UI.Menu.Open(
                    'default', GetCurrentResourceName(), 'pole',
                    {
                        title  = "Barra",
                        align    = 'bottom-right',
                        elements = {
                            {label = "Baile 1" ,value = "1"},
                            {label = "Baile 2" ,value = "2"},
                            {label = "Baile 3" ,value = "3"}
                        }
                    },
                    function(data, menu)
                    FishyDEV = true
                    LoadDict('mini@strip_club@pole_dance@pole_dance' .. data.current.value)
                    local scene = NetworkCreateSynchronisedScene(v['Position'], vector3(0.0, 0.0, 0.0), 2, false, false, 1065353216, 0, 1.3)
                    NetworkAddPedToSynchronisedScene(PlayerPedId(), scene, 'mini@strip_club@pole_dance@pole_dance' .. data.current.value, 'pd_dance_0' .. data.current.value, 1.5, -4.0, 1, 1, 1148846080, 0)
                    NetworkStartSynchronisedScene(scene)
                    end,
                    function(data, menu)
                        menu.close()
                    end)
                    
                    
                elseif IsControlJustReleased(0, 51) and FishyDEV then
                FishyDEV = false
                ClearPedTasks(PlayerPedId())
                end
            end
        end
        Citizen.Wait(_sleep)
    end
end)

LoadDict = function(Dict)
    while not HasAnimDictLoaded(Dict) do 
        Wait(0)
        RequestAnimDict(Dict)
    end
end
2 Likes

This would be much better if you could somehow get it linked to the pole prop instead of vector coords. It is such a pain to get it lined up correctly with a pole if you want to add new ones.

3 Likes

SOoooo TRUE :smiley:

What else has to be done for this to work, i tried using this and it would work nothings up, no notification nothing

Can this be created for QBCore?

1 Like