حط دا بملف الساعات
_getTime = function (_p)
local _hour = tonumber(t[_p][ 'hour' ] or 0 )
return _hour end
والسطر دا بالميتا حقت الساعات
<export function="_getTime" type="server"/>
ودا مثال علي الاكسبورت
سيرفر
addCommandHandler ('ss',function (source)
-- _oskar بدلها ب اسم المود حقك
if exports._oskar:_getTime(source) >= tonumber('40') then
triggerClientEvent(source,'_trigger:open',source)
else
outputChatBox('لاتملك 40 ساعة',source ,255 ,0 ,0 ,true)
end
end)
كلنت
_window = guiCreateWindow(296, 256, 425, 263, "Test", false)
guiWindowSetSizable( _window , false)
guiSetVisible ( _window ,false)
addEvent('_trigger:open',true)
addEventHandler('_trigger:open',root,function()
guiSetVisible ( _window , not guiGetVisible ( _window ) )
showCursor ( guiGetVisible ( _window ) )
end)