سلام عليكم
فيه خطأ ذأ الكود ؟
addEventHandler('onClientClick',root, function ( button , state )
if ( button == 'left' and state == 'up' ) then
if ( isMouseInPosition ( 395, 168, 97, 29 ) ) then
if ( guiGetText(time1) ~= '' and guiGridListGetSelectedItem ( grid ) ~= -1 ) then
triggerServerEvent('onTake',localPlayer,guiGridListGetItemText(grid,guiGridListGetSelectedItem ( grid ),1),guiGetText(time1))
else
outputChatBox('خطأ !!',0,255,0,true)
end
end
end
end
)