Então, eu baixei um mod da internet, editei, porém está ocorrendo um erro q nao consigo arrumar,
ERROR : Vender-Armas/Client.Lua:120: clientside element 'gui-button' at argument @4 "triggerServerEvent"
ERROR : Vender-Armas/Client.Lua:120: clientside element 'gui-edit' at argument @6 "triggerServerEvent"
addEventHandler("onClientGUIClick",send,
function ()
local sel_1 = guiGridListGetSelectedItem(players_grid)
local sel_2 = guiGridListGetSelectedItem(weapons_grid)
if sel_1 ~= -1 and sel_2 ~= -1 then
local PlayerName = guiGridListGetItemText(players_grid,sel_1,1)
local player = getPlayerFromName(PlayerName)
if isElement(player) then
if player ~= localPlayer then
local WeaponName = guiGridListGetItemText(weapons_grid,sel_2,1)
local WeaponAmmo = guiGridListGetItemText(weapons_grid,sel_2,2)
local WeaponID = getWeaponIDFromName(WeaponName)
local Ammo = guiGetText(ammo)
if tonumber(Ammo) and tonumber(Ammo) >= 10 then
if tonumber(WeaponAmmo) >= tonumber(Ammo) then
setTimer(RefreshLists,500,1)
triggerServerEvent("SendWeapon", localPlayer, player, source, id, ammo) ====== linha 120
else
outputChatBox("Erro: Você não tem munição suficiente para esta arma",255,0,0)
end
else
outputChatBox("Error: Escreva um número na Editar",255,0,0)
end
else
outputChatBox("Erro: Não é possível enviar Arma Para Seu Auto",255,0,0)
end
else
RefreshLists()
outputChatBox("Error: Jogador não encontrado, Lists refrescado",255,0,0)
end
end
end
)