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’)
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_mechanicjobutStockItems')
end
end,
function(data, menu)
menu.close()
end
________________________________________________________________________
wie weet hoe ik deze codestring kan fixen
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_mechanicjobutStockItems')
end
end,
function(data, menu)
menu.close()
end
________________________________________________________________________
wie weet hoe ik deze codestring kan fixen
Last edited: