• Guest did you know we are live since end 2019? Still going strong thanks to all of you!💪❤

STANDALONE PA Crafting NoPixel 4.0 inspired [Open Source]

martink7331

Active member
Joined
May 17, 2023
Messages
54
Reaction score
37
Points
18
Credits
1,571
Hello everyone! I am sharing you the latest version of pa-crafting completely open-source. In the pack even I included pa-props again OPEN source so you won't worry about that also.
The only problem is that it uses pa-lib-2, script works fine! Just the lib is encrypted.

If someone wants to help and decrypt are welcome. If you have more information message in the comments of the post.

Preview

 

monetleak3d

Active member
Joined
Jun 20, 2023
Messages
194
Reaction score
41
Points
28
Credits
494
still working on it to make it work
 

Attachments

  • gfdImmagine.jpg
    gfdImmagine.jpg
    217.5 KB · Views: 238

monetleak3d

Active member
Joined
Jun 20, 2023
Messages
194
Reaction score
41
Points
28
Credits
494
lets go, thought was more difficult but it was really easy xD
 

Attachments

  • easyImmagine.jpg
    easyImmagine.jpg
    169.9 KB · Views: 238

umer02818

Well-known member
Joined
Aug 7, 2024
Messages
299
Reaction score
10
Points
18
Credits
2
Hello everyone! I am sharing you the latest version of pa-crafting completely open-source. In the pack even I included pa-props again OPEN source so you won't worry about that also.
The only problem is that it uses pa-lib-2, script works fine! Just the lib is encrypted.

If someone wants to help and decrypt are welcome. If you have more information message in the comments of the post.

Preview

-=Stripped Content=-
thanks for this! going to test it out right now!
 

martink7331

Active member
Joined
May 17, 2023
Messages
54
Reaction score
37
Points
18
Credits
1,571
Hello everyone! I am sharing you the latest version of pa-crafting completely open-source. In the pack even I included pa-props again OPEN source so you won't worry about that also.
The only problem is that it uses pa-lib-2, script works fine! Just the lib is encrypted.

If someone wants to help and decrypt are welcome. If you have more information message in the comments of the post.

Preview

-=Stripped Content=-
Try all with :
RegisterNetEvent('pa-craft:openMenu')
AddEventHandler('pa-craft:openMenu', function(receivedMenuId)
menuId = receivedMenuId

-- This section handles the menu open state directly
menuOpen = true

-- Fetch the weapon item details and open the NUI menu
TriggerCallback('pa-craft:GetWeaponItem', function(callback, Queue)
SendNUIMessage({
type = "open",
weaponAttachment = {},
weapons = callback,
craftItems = PA.CraftItems,
append = true,
Queue = Queue,
folder = PA.InventoryFolder
})

menuOpen = true
SetNuiFocus(true, true)

while menuOpen do
Citizen.Wait(1000)
TriggerCallback('pa-craft:queueUpdate', function(callback)
SendNUIMessage({
type = "queueUpdate",
Queue = callback,
folder = PA.InventoryFolder
})
end, menuId)
end
end)

SetEntityVisible(PlayerPedId(), false)

-- Event listener to handle closing the menu
RegisterNUICallback('closeMenu', function(data, cb)
menuOpen = false
SetNuiFocus(false, false)
SetEntityVisible(PlayerPedId(), true)
cb('ok')
end)
end)
this replaced function it should open the crafting but it wont handle the receivedMenuId, should find out how this can be done so the pa-lib-2 it will not be needed
 

cyh_0316

Active member
Joined
Mar 4, 2024
Messages
68
Reaction score
5
Points
8
Credits
21
The attention to detail in this script is impressive, making it a must-have for any serious gamer.
 

FivemDev_

Moderator
Joined
Mar 26, 2022
Messages
113
Reaction score
9
Points
18
Credits
2,638
Try all with :
RegisterNetEvent('pa-craft:eek:penMenu')
AddEventHandler('pa-craft:eek:penMenu', function(receivedMenuId)
menuId = receivedMenuId

-- This section handles the menu open state directly
menuOpen = true

-- Fetch the weapon item details and open the NUI menu
TriggerCallback('pa-craft:GetWeaponItem', function(callback, Queue)
SendNUIMessage({
type = "open",
weaponAttachment = {},
weapons = callback,
craftItems = PA.CraftItems,
append = true,
Queue = Queue,
folder = PA.InventoryFolder
})

menuOpen = true
SetNuiFocus(true, true)

while menuOpen do
Citizen.Wait(1000)
TriggerCallback('pa-craft:queueUpdate', function(callback)
SendNUIMessage({
type = "queueUpdate",
Queue = callback,
folder = PA.InventoryFolder
})
end, menuId)
end
end)

SetEntityVisible(PlayerPedId(), false)

-- Event listener to handle closing the menu
RegisterNUICallback('closeMenu', function(data, cb)
menuOpen = false
SetNuiFocus(false, false)
SetEntityVisible(PlayerPedId(), true)
cb('ok')
end)
end)
this replaced function it should open the crafting but it wont handle the receivedMenuId, should find out how this can be done so the pa-lib-2 it will not be needed
where should this be added?
 

.pallow

New member
Joined
Mar 26, 2024
Messages
3
Reaction score
2
Points
1
Credits
2
Hello everyone! I am sharing you the latest version of pa-crafting completely open-source. In the pack even I included pa-props again OPEN source so you won't worry about that also.
The only problem is that it uses pa-lib-2, script works fine! Just the lib is encrypted.

If someone wants to help and decrypt are welcome. If you have more information message in the comments of the post.

Preview

-=Stripped Content=-
Good job man. Thank you
 
Back
Top