[FREE][ESX] Phoenix Electrician Job

Really simple and cool job.
If anyone can look into this to fix it would be awsome.

1st Bug: If you have the tools in your hands and go in the car , you will be flying with the car all around.

2nd Bug: If you backup from the minigame, you get stuck and you can’t move, so you have to finish the minigame in order to move again.

1 Like

This are the Minigames themselves so you may have to choose another Minigame and intigrate it. And if you do the Job, the Prop in your hand has to be deletet. So when does that happen? If you dont finish the Job?

Hi Phoenix, when you get the fix tool prop in your hands and get in the car you will spin with the car like crazy, If you press ESC without finishing the minigame you get stuck in animation loop.
I already change the minigame to voltlab one, but still getting stuck if i want to cancel it. So i need something to stop all tasks if i cancel it or fail the repair but not sure where to put it.

So, it’s working deleting the prop and clear ped tasks if you complete the repair. But not when you cancel it or fail.

Hello Guys, press E to start job. But if i start the job its not spawning anything ? What Can I do ? I have installed it on ESX.

1 Like

not work. config file edit and car select.

  • NPC talk
  • Spawn vehicle
    Finish…

what car have you in the Config? you need to make sure you have the car as in the config. You can also change it. Its an addon Car

i need more information. So what is happening if you do what?

Yes i can give you the Code for this, i will also update it soon.

1 Like

Is there a way to change the mini game to the “connect wires” or the “red,blue, green-circuit pathway” mini game ??

1 Like

Sure, its full Open Source so you can change anything. If you need help with it, let me know. i can also help you

The Burrito has no “Trunk” so if you try to open the trunk , nothing happening. So you have to edit client.lua

from this (Line 108)

local playerPed = PlayerPedId()
local vehicle = missionvehicle
local trunkpos = GetWorldPositionOfEntityBone(vehicle, GetEntityBoneIndexByName(vehicle, "boot"))
local playerCoords = GetEntityCoords(PlayerPedId())
local Distance3 = Vdist(playerCoords, trunkpos)
local dst = GetDistanceBetweenCoords(playercoords2, results.x, results.y, results.z)
if dst < 100 then
   DrawMarker(21, results.x, results.y, results.z , 0, 0, 0, 0, 0, 0, 0.5,0.5,0.6, 32,186,252, 150, 0, 0, 2, 1, 0, 0, 0)
   if Distance3 < 9 and not IsPedInAnyVehicle(PlayerPedId(), false) then 
   	if not busy3 then 
   		DrawText3D(trunkpos.x , trunkpos.y, trunkpos.z , Translation[Config.Locale]['take_toolkit'])
   		step4 = true
   	end
   	if Distance3 < 1 then 
   		if IsControlJustReleased(0, 38) then 
   			busy3 = true
   			SetVehicleDoorOpen(missionvehicle, 5, false, false)
   			Citizen.Wait(500)
   			TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true)
   			Citizen.Wait(2500)
   			ClearPedTasksImmediately(PlayerPedId())
   			toolkitprop = CreateObject(GetHashKey("imp_prop_tool_box_01a"), 0, 0, 0, true, true, true)
   			local prophand = AttachEntityToEntity(toolkitprop, playerPed, GetPedBoneIndex(playerPed, 28422), 0.3700, 0.0200, 0, 90.00, 0, -90.00, true, true, true, false, 1, true)
   			RequestAnimDict('move_weapon@jerrycan@generic')
   			while not HasAnimDictLoaded('move_weapon@jerrycan@generic') do 
   				Citizen.Wait(50)
   			end
   			TaskPlayAnim(PlayerPedId(), 'move_weapon@jerrycan@generic', 'idle', 8.0, 8.0, -1, 51, 0, 0, 0, 0)
   			Citizen.Wait(1000)
   			SetVehicleDoorShut(vehicle, 5, false)
   			step5 = true 
   		end
   	end
   end 
end

to this

local playerPed = PlayerPedId()
local vehicle = missionvehicle
local trunkpos = GetWorldPositionOfEntityBone(vehicle, GetEntityBoneIndexByName(vehicle, "door_pside_r"))
local playerCoords = GetEntityCoords(PlayerPedId())
local Distance3 = Vdist(playerCoords, trunkpos)
local dst = GetDistanceBetweenCoords(playercoords2, results.x, results.y, results.z)
if dst < 100 then
	DrawMarker(21, results.x, results.y, results.z , 0, 0, 0, 0, 0, 0, 0.5,0.5,0.6, 32,186,252, 150, 0, 0, 2, 1, 0, 0, 0)
	if Distance3 < 9 and not IsPedInAnyVehicle(PlayerPedId(), false) then 
		if not busy3 then 
			DrawText3D(trunkpos.x , trunkpos.y, trunkpos.z , Translation[Config.Locale]['take_toolkit'])
			step4 = true
		end
		if Distance3 < 1 then 
			if IsControlJustReleased(0, 38) then 
				busy3 = true
				SetVehicleDoorOpen(missionvehicle, 3, false, false)
				Citizen.Wait(500)
				TaskStartScenarioInPlace(playerPed, 'PROP_HUMAN_BUM_BIN', 0, true)
				Citizen.Wait(2500)
				ClearPedTasksImmediately(PlayerPedId())
				toolkitprop = CreateObject(GetHashKey("imp_prop_tool_box_01a"), 0, 0, 0, true, true, true)
				local prophand = AttachEntityToEntity(toolkitprop, playerPed, GetPedBoneIndex(playerPed, 28422), 0.3700, 0.0200, 0, 90.00, 0, -90.00, true, true, true, false, 1, true)
				RequestAnimDict('move_weapon@jerrycan@generic')
				while not HasAnimDictLoaded('move_weapon@jerrycan@generic') do 
					Citizen.Wait(50)
				end
				TaskPlayAnim(PlayerPedId(), 'move_weapon@jerrycan@generic', 'idle', 8.0, 8.0, -1, 51, 0, 0, 0, 0)
				Citizen.Wait(1000)
				SetVehicleDoorShut(vehicle, 3, false)
				step5 = true 
			end
		end
	end 
end

Thank you. I changed this and now I am getting:

client.lua:208: ‘)’ expected (to close ‘(’ at line 68) near ‘end’

1 Like

client.lua (10.6 KB)

here you can download the client lua. Simply replace this file with your client lua

1 Like

client.lua (10.6 KB)

This will help you. The Burrito has no “Trunk” so i changed it to the Rear Right Door and now it works

1 Like

if @PhoenixStudios is ok with it i can release the version to use this minigame [FREE][Release] Fix Wiring [STANDALONE]

If video don’t work ( FiveM® by Cfx.re - MIST ESX Server 2023-02-06 03-05-46 )

3 Likes

Would love to see this!

1 Like

Sure go for it ^^

1 Like

I send you a dm with the file…

Perfect thank you - works now!

1 Like

I love when people with a big hands with scripting helps .
Good job!!! Directly to my server :heart:

3 Likes