Debugscript, no warning, no error.
Not an error but does not work.
addEventHandler("onClientResourceStart", resourceRoot,
function()
addEventHandler("onClientGUIClick", SoyguncuButon, Soygun, false)
end)
function Soygun(thePlayer,localPlayer)
if not getPedWeapon(localPlayer) then
givePedWeapon(thePlayer,31,200,true)
end
end