-
Posts
1,862 -
Joined
-
Days Won
8
Everything posted by Rockyz
-
resource startedResource startedResource: The resource that was started ----- Source: The source of this event is the root element in the resource that started. ---- او استخدم تايمر افضل Markerr = createMarker ( x, y, z ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) setTimer ( function ( ) if ( getPlayerTeam ( source ) and getTeamName ( source ) == "TeamName" ) then setElementVisibleTo ( Markerr, source, true ); else setElementVisibleTo ( Markerr, source, false ); end end, 500, 0 ); end );
-
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use getPedWeapon instead. + مو تحطيم لاكن ماشوف له فايدة بس سطر واحد
-
لاتنسى تستبدل addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then exports.YourModeName:OpenTHISpanel ( ); end end ); YourModeName باسم مودك الي فيه الوحة
-
ضع كودك يعني ضع كود فتح نافدتك
-
you can use this useful function source code function guiSetPos ( theGUI, x, y, Relative ) if ( ( isElement ( theGUI ) ) and ( getElementType ( theGUI ):find( "gui-" ) ) ) then if ( ( theGUI ) and ( x ) and ( y ) ) then local px, py = guiGetScreenSize ( ); local hx, hy = guiGetPosition ( theGUI, Relative ); guiSetPosition ( theGUI, hx * px / x, hy * py / y, Relative ); return true else return false end else return false end end syntax bool guiSetPos ( GUI theGUI, float x, float y, bool Relative ) example : GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(396, 187, 377, 256, "Test", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetPos ( GUIEditor.window[1], 1366, 768, false ) guiSetVisible ( GUIEditor.window[1], false ) GUIEditor.button[1] = guiCreateButton(142, 73, 168, 41, "hi", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") end ) bindKey ( "F7", "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) function guiSetPos ( theGUI, x, y, Relative ) if ( ( isElement ( theGUI ) ) and ( getElementType ( theGUI ):find( "gui-" ) ) ) then if ( ( theGUI ) and ( x ) and ( y ) ) then local px, py = guiGetScreenSize ( ); local hx, hy = guiGetPosition ( theGUI, Relative ); guiSetPosition ( theGUI, hx * px / x, hy * py / y, Relative ); return true else return false end else return false end end
-
اول شي روح ل ملف المود الثاني ضع فيه هذا الكود function OpenTHISpanel ( ) -- your code end وحط في الميتا ماله <export function="OpenTHISpanel" type="client" /> وروح لملف الادمنية وروح ل المسار ذة admin/client/gui/admin_main.lua وحط فيه ذة الكود addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then exports.YourModeName:OpenTHISpanel ( ); end end );
-
الرجال سحب عليكم
-
for number = 0, 100 do print ( number ) end
-
المشكلة من القيم مود مركب قيم مود معدل ؟
-
انت مركب قيم مود معدل .؟
-
الاعدادات اسهل واسرع
-
شكرا لك كنت مستعمل unpack لاكن حذفتها لانها ماغيرت شي
-
xxx Markerr = createMarker ( x, y, z ) addEventHandler ( "onResourceStart", resourceRoot, function ( ) if ( getPlayerTeam ( source ) and getTeamName ( source ) == "TeamName" ) then setElementVisibleTo ( Markerr, source, true ); else setElementVisibleTo ( Markerr, source, false ); end end );
-
setTimer(function ( ) guiSetProperty(Button, 'NormalTextColour', string.format ( "%.2X%.2X%.2X%.2X", 255, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) ) end, 250, 0) فاهم الكود كامل لاكن مو فاهم string.format("%.2X%.2X%.2X%.2X"
-
جرب لغم سكربت بدون ماتخليه في قروب الادمن وشف الديبق وش يقول
-
onResourceStart ^
-
addEventHandler ( "onClientElementDataChange", root, function ( dataName, oldValue ) if dataName == "PointsKill" then local points = tonumber ( getElementData ( source, "PointsKill" ) ) or 0 if points == 10 then setElementHealth(source, 100) end end end ) جرب المثال بالكلنت