• We have a new discord! click here to join
    Any faulty links ? Report them in our discord or via our Ticket System!
    We do everything we can to protect the safety of our visitors, if any resource contains malware in any kind of form or obfuscation please report it aswell ♡♡

hulp gevraagd bij pakken van equipment esx_mechanicjob (1 Viewer)

soldier

Member
May 27, 2021
33
1
8
Credits
73
ik heb een custom ambu script alles werkt alleen heb ik een probleem dat wanneer ik verband pak ik de eror krijg Attempt to call a nil value (global ‘activeerhandelingserver’)


1624481407116.png


in de code string

________________________________________________________________________
unction(data, menu)

if data.current.value == 'get_equipment' then

TriggerServerEvent('esx_mechanicjob:getstockitems', 'weapon_flashlight', 1)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_FIREEXTINGUISHER', 2000)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_PETROLCAN', 2000)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_WRENCH', 1)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_CROWBAR', 1)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_HAMMER', 1)

elseif data.current.value == 'del_equipment' then

TriggerServerEvent('esx_mechanicjob:putStockItems')

end

end,

function(data, menu)

menu.close()

end
________________________________________________________________________
wie weet hoe ik deze codestring kan fixen
 
Last edited:

Rafmaster06

New member
Oct 17, 2021
2
0
1
Credits
38
Jow ik heb momenteel het zelfde gehad ik heb die triggerserverevent verander en heb er zelf dit van gemaakt voor de mechnaicjob



function(data, menu)
if data.current.value == 'pak_equipment' then
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_flashlight"), 250, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_FIREEXTINGUISHER"), 250, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_PETROLCAN"), 250, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_WRENCH"), 250, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_CROWBAR"), 250, true, true)
GiveWeaponToPed(GetPlayerPed(-1), GetHashKey("WEAPON_HAMMER"), 250, true, true)
elseif data.current.value == 'del_equipment' then
RemoveAllPedWeapons(GetPlayerPed(-1))
end
end,
function(data, menu)
menu.close()
end


voor mij mechanic job werkt dit nu
 

7omarr

Member
May 14, 2024
8
0
1
Credits
3
ik heb een custom ambu script alles werkt alleen heb ik een probleem dat wanneer ik verband pak ik de eror krijg Attempt to call a nil value (global ‘activeerhandelingserver’)


View attachment 134


in de code string

________________________________________________________________________
unction(data, menu)

if data.current.value == 'get_equipment' then

TriggerServerEvent('esx_mechanicjob:getstockitems', 'weapon_flashlight', 1)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_FIREEXTINGUISHER', 2000)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_PETROLCAN', 2000)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_WRENCH', 1)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_CROWBAR', 1)

TriggerServerEvent('esx_mechanicjob:getstockitems', 'WEAPON_HAMMER', 1)

elseif data.current.value == 'del_equipment' then

TriggerServerEvent('esx_mechanicjob:putStockItems')

end

end,

function(data, menu)

menu.close()

end
________________________________________________________________________
wie weet hoe ik deze codestring kan fixen
Ja heb ik ook gehad is heil Iets kleins zal t voor je checken
 

Users who are viewing this thread

Top