-
Posts
300 -
Joined
-
Last visited
Everything posted by Naif
-
# حيـأإأكككَ الله بـ أي وَقتت
-
onClientRender onClientGUIClick guiGetScreenSize dxDrawText dxCreateFont guiGetText triggerServerEvent triggerClientEvent addEvent addEventHandler
-
onClientMarkerHit getElementVelocity getPedOccupiedVehicle setElementVelocity
-
function getPlayerAllGroups(player) local account = getPlayerAccount ( player) if ( isGuestAccount ( account ) ) then return false end local AclList = {} AclList["Groups"] = {} AclList["getGroups"] = {} for _, group in ipairs ( aclGroupList() ) do table.insert ( AclList["Groups"],aclGroupGetName ( group ) ) end for k ,v in pairs(AclList.Groups) do if isObjectInACLGroup ( "user."..getAccountName ( account ), aclGetGroup (v) )then table.insert ( AclList["getGroups"],v) end end return table.concat(AclList.getGroups, ",") end حط ذأ بـ ملف السيرفر ..
-
addEvent('get',true) addEventHandler('get',root, function ( thePlr ) local groups = getPlayerAllGroups ( thePlr ) if ( groups ) then triggerClientEvent(thePlr,'setGr',thePlr,groups) else triggerClientEvent(thePlr,'setGr1',thePlr) end end)
-
-- Server Side function getPlayerAllGroups(player) local account = getPlayerAccount ( player) if ( isGuestAccount ( account ) ) then return false end local AclList = {} AclList["Groups"] = {} AclList["getGroups"] = {} for _, group in ipairs ( aclGroupList() ) do table.insert ( AclList["Groups"],aclGroupGetName ( group ) ) end for k ,v in pairs(AclList.Groups) do if isObjectInACLGroup ( "user."..getAccountName ( account ), aclGetGroup (v) )then table.insert ( AclList["getGroups"],v) end end return table.concat(AclList.getGroups, ",") end addEvent('get',true) addEventHandler('get',root, function ( thePlr ) if ( not isGuestAccount ( getPlayerAccount ( thePlr ) ) ) then triggerClientEvent(thePlr,'setGr',thePlr,getPlayerAllGroups ( thePlr )) else triggerClientEvent(thePlr,'setGr1',thePlr) end end) -- Client Side addEventHandler('onClientResourceStart',resourceRoot, function ( ) triggerServerEvent('get',localPlayer) end) addEvent('setGr',true) addEventHandler('setGr',root, function ( groups ) if ( groups ) then guiSetText(Lebelacl,tostring(groups)) end end) addEvent('setGr1',true) addEventHandler('setGr1',root, function ( ) guiSetText(Lebelacl,'N\A') end) ماجربته ,
-
اتوقع انك عطيته onClientGUIClick وتعطيه bindKey ؟ مع انه يقول سوأه ..
-
ههههههه الله يسعدك مثل ماسعدتني , أهنيك .. عقبال مانشوفك مشرف , بـ التوفيق , استفدت كثير ..
-
المشكلة يوم حكشة واحد يقول تخيلني انا فنكش يتكلم على نفسه ,, ترا فيه مستشفى مجانين تبيني اقدم لك ؟ و على حسابي بعد ..
-
speed = 0 addEventHandler('onClientRender',root,function() speed = speed +3 dxDrawImage (658, 520, 65, 54, 'imageName.png', speed, tocolor(0,48,239,255), true) end)
-
ضيفه قروب ادمن ..
-
^ + guiGridListGetSelectedItem guiGridListAddRow
-
addEventHandler('onClientGUIClick',root,function ( ) if ( source == re ) then triggerServerEvent('aO',localPlayer) end end)
-
bindKey guiGetText triggerServerEvent table.concat outputChatBox
