addEventHandler("onClientClick", root, function(btn,state)
local screenW, screenH = guiGetScreenSize()
if btn=="left" and state=="down" then
if isMouseIn(469, 311, 119, 48) then
if getElementData( localPlayer, "player:srp" ) < 2500 then
return outputChatBox("✘ #FFFFFFNie posiadasz wymaganej reputacji. (2500 SRP)", localPlayer, 255, 0, 0, true)
elseif hajs < 250000 then
return outputChatBox("✘ #FFFFFFNie posiadasz wymaganej got?wki. (250,000$)", localPlayer, 255, 0, 0, true) then
takePlayerMoney(localPlayer,250000) then
outputChatBox("✓ #FFFFFFZakupi?e?/a? bro? AK-47", localPlayer, 71, 122, 0, true)
triggerServerEvent("ak47", localPlayer, function()
end
end
end
end
end)