صححلي الكود تكفا
# Client Side !
function ()
for i,v in ipairs(getElementsByType("player")) do
Gives = guiCreateButton( 0.7, 0.1, 0.2, 0.1, "....", true )
Hoews = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, "", true )
local Taes = guiGetText ( Hoews )
Gread = guiCreateGridList(0, 0, 0, 0, false)
local Row = guiGridListAddRow (Gread)
guiGridListSetItemText ( Gread, Row, "" ..name.. "", false, false )
end
)
function Weapon ()
triggerServerEvent ( "onGiveWeapon", root,
end
addEventHandler ( "onClientGUIClick", Gives, Weapon )
# Server Side !
addEvent( "onGiveWeapon", true )
addEventHandler( "onGiveWeapon", root,
function ()
giveWeapon ( source, idWeapon, ammo )
end)