جرب
#Client Side :
GUIEditor_Window = {}
GUIEditor_Window[1] = guiCreateWindow(340,250,573,315,"abu-waleed",false)
aa = guiCreateButton(23,116,536,81,"شراء",false,GUIEditor_Window[1])
bb = guiCreateEdit(26,20,524,89,"",false,GUIEditor_Window[1])
cc = guiCreateLabel(24,211,531,86,"",false,GUIEditor_Window[1])
addEventHandler( "onClientGUIClick", getRootElement ( ),
function( )
if ( source == aa ) then
local Shots = guiGetText( bb )
if ( Shots ~= "" ) then
if not ( tonumber( Shots ) ) then return end
if ( tonumber( Shots ) > 2000 ) then
guiSetText ( bb, '2000' )
local GetShots = math.floor( tonumber( Shots ) * 40 )
guiSetText( cc, 'Money taken:' ""..GetShots.."" )
triggerServerEvent( "GiveWe", getLocalPlayer ( ), GetShots, tonumber( Shots ) )
end
end
end
end
)