جرب اخوي @
?--@Clinet Side
addEventHandler ( "onClientGUIClick" , root , function ( )
if source == اسم الزر then
givePlayerMoney( 1000 )
outPutChatBox("لقد تم حصولك علي 1000 $ انتظر كل دقيقيتين")
setTimer( function( )
givePlayerMoney( 1000 )
outPutChatBox("لقد تم حصولك علي 1000 $ انتظر كل دقيقيتين")
end ,2 * 60000 ,0)
end
end )
addEvent("onOpenPM",true)
addEventHandler("onOpenPM",root,
function ()
guiSetVisible(اسم لوحتك,true)
showCursor(true)
guiSetInputEnabled(true)
end
)
--@Server Side
addCommandHandler("الكلمة الي تكتبها بف 8 عشان تظهر اللوحة",
function (cmd)
if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(cmd)),aclGetGroup("اسم قروب الاسل")) then
triggerClientEvent(cmd,"onOpenPM",cmd)
else
outputChatBox( '* لآ تملك صلاحيات لهذآ', cmd, 255, 0, 0, true )
end
end
)