Locker Room for Jobs

Hello everyone,

I’m looking for a locker room script :slight_smile: I explain :

I want players get to a point, where they change their clothes for work :slight_smile:

I tried to make modifications on the Cops LockerRoom script part from Kyominii Release, but, unsuccessfull :confused:

Here my work if someone would help to make a good releases for everyone :slight_smile:

vestmineur.lua (11.0 KB)
client.lua (976 Bytes)

PS : Ped clothes are not the good one, We’ll change this later if the script work :slight_smile:

I’m not good in LUa, so maybe I make big mistakes :slight_smile:
Thanks for help :slight_smile:

Scapin

LIST OF PROBLEMS :

  • Drawmarker not visible
1 Like

Add

local mineur_veste = {
	{ ['x'] = X, ['y'] = Y, ['z'] = Z },
}

And

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		local pos = GetEntityCoords(GetPlayerPed(-1), false)
		for k,v in ipairs(mineur_veste) do
			if(Vdist(v.x, v.y, v.z, pos.x, pos.y, pos.z) < 20.0)then
				DrawMarker(1, v.x, v.y, v.z - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 0, 25, 165, 165, 0,0, 0,0)
				if(Vdist(v.x, v.y, v.z, pos.x, pos.y, pos.z) < 2.0)then
					DisplayHelpText("Appuyez sur ~INPUT_CONTEXT~ pour accéder au ~b~Vestiaire")
					if IsControlJustPressed(1, 51) then
                        OpenMenuVest()
                        Menu.hidden = not Menu.hidden
				    end
                  Menu.renderGUI(options)
                end
            end
		end
	end
end)
2 Likes

Still the same had nothing :confused: No Drawmarker, no possibility to open the menu.

try to correct this

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        		if(isNearTakeService()) then
			
				DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au ~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
				if IsControlJustPressed(1,51) then
					OpenMenuVest()
				end
			end

By this

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        if(isNearTakeService()) then
		DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au ~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
			if IsControlJustPressed(1,51) then
				OpenMenuVest()
			end
		end
	end
end)

No Drawmarker on the floor.

Try this

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        local pos = GetEntityCoords(GetPlayerPed(-1), false)
        if(Vdist(2707.11083984375, 2777.21069335938, 37.8780288696289, pos.x, pos.y, pos.z) < 20.0)then
			DrawMarker(1, 2707.11083984375, 2777.21069335938, 37.8780288696289 - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 0, 25, 165, 165, 0,0, 0,0)
            if(isNearTakeService()) then
		        DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
			    if IsControlJustPressed(1,51) then
				    OpenMenuVest()
				end
			end
		end
	end

Nop … same… Please, before giving me scripts, try by your side if you can. Let’s make this script work together.

oh no i have just forgot a syntax

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        local pos = GetEntityCoords(GetPlayerPed(-1), false)
        if(Vdist(2707.11083984375, 2777.21069335938, 37.8780288696289, pos.x, pos.y, pos.z) < 20.0)then
			DrawMarker(1, 2707.11083984375, 2777.21069335938, 37.8780288696289 - 1, 0, 0, 0, 0, 0, 0, 1.0001, 1.0001, 1.5001, 0, 25, 165, 165, 0,0, 0,0)
            if(isNearTakeService()) then
		        DisplayHelpText('Appuyez sur ~INPUT_CONTEXT~ pour accéder au~b~Vestiaire',0,1,0.5,0.8,0.6,255,255,255,255) -- ~g~E~s~
			    if IsControlJustPressed(1,51) then
				    OpenMenuVest()
				end
			end
		end
	end
end)

Did you tried it ?

It doesnt Work … Please test it on your own before pasting your code here…

I don’t have my pc actually

Hey I working on too but i guess the problem is on the script ! Impossible to display something.

1 Like