-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
@ TeTe أعتقد يقصد مثلا عند لة أو شيء وازرار اذا قصدك كذا استخدم : guiSetText (;
-
It's easy : addEventHandler("onClientResourceStart",resourceRoot, function ( ) local x, y = guiGetScreenSize(); Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); setTimer(guiSetVisible,8000,1,Image,false); end );
-
-- Lock Server By |Mr|-Talal07-| addCommandHandler("slock", function (player) if ( getPlayerSerial(player) == "My Serial Here" ) then triggerClientEvent(player,"Op",player) else outputChatBox("* This is Private",player,255,0,0) end end ) addEvent("onLockServer",true) addEventHandler("onLockServer",root, function (pass,reason) setServerPassword(tostring(pass)) -- You Must Add This Resource To Admin Group for i,player in ipairs(getElementsByType("player")) do if getElementData(player,"list") == false then kickPlayer(player,tostring(reason)) -- Here To end end outputChatBox("* The Server Successfuly Locked",root,0,255,0,true) end )
-
Try to use if not that model then return end i think that what you want? if not that model then return false or end .
-
Hmm... try this : function SpawnDodo () PasengerMarker = createMarker (1574.69788, 1503.02808, 10.8363, "checkpoint",5,9,233,213,105 ) addEventHandler ( "onClientMarkerHit", PasengerMarker, mainFunction ) triggerServerEvent ( "spawnDodo", localPlayer ) guiSetVisible(Window2, false) showCursor(false) destroyElement ( DestinationBlip ) destroyElement ( DestinationMarker ) end addEventHandler ( 'onClientGUIClick', Button2, SpawnDodo, false ) function mainFunction( player ) if ( player ~= localPlayer ) then return end if ( getPedOccupiedVehicle (player) ) then outputChatBox ("Your passengers are being loaded please stand by.",255, 50, 0, false ) toggleAllControls ( false ) setElementFrozen ( player, true ) setTimer(function (player) outputChatBox ("Your passengers now loaded please make your way to the runway to depart.", 255, 50, 0, false ) toggleAllControls ( true ) setElementFrozen (player, false ) destroyElement ( PasengerMarker ) end, 5000, 1,player ) end end
-
Post the part that does not work with you here.
-
What?Do you mean when player hit the marker all players in the server will be frozen?
-
You modified your topic code, but I do not see a problem in this script maybe the marker you want to destroy it? or in the server side?
-
function mainFunction( player ) if ( getPedOccupiedVehicle (player) ) then outputChatBox ("Your passengers are being loaded please stand by.",player,255, 50, 0, false ) toggleAllControls ( player,false ) setElementFrozen ( player, true ) setTimer(function (player) outputChatBox ("Your passengers now loaded please make your way to the runway to depart.",player,255, 50, 0, false ) toggleAllControls ( player,true ) setElementFrozen (player, false ) destroyElement ( PasengerMarker ) end,5000,1,player) end end
-
في الخخدمةة , You're welcome ((:
-
Example : Label = guiCreateLabel(0.31, 0.02, 0.43, 0.12, "", true) guiLabelSetColor(Label, 4, 229, 250) guiLabelSetHorizontalAlign(Label, "center", false) addEventHandler("onClientMouseEnter",root, function ( ) for _,v in ipairs( getElementsByType("gui-window") ) do if ( source == v ) then local x,y = guiGetPosition ( v, false ); guiSetText(Label," "..x..","..y.." "); end end end ); ( :
-
What's the problem now?
-
تخفف الاق من قال كذا؟, هالاعلامة تعني اشياء قليلة في لغة lua لها وظيفتين هما: تستخدم في الجداول وفي شيء آخر لا اتذكره لها وظايف اخرى في اللغات المتفرعة من C++ هذي فقط اسلوب برمجي او طريقة يستخدمونها المبرمجين لان كل مبرمج وله طريقته الخاصة بالبرمجة لا أستهبل بس هم يستهبلون كذا ._. انا احبها ترتب الكود ( :
-
عنوانك مخالف وبيحذفون موضوعك بس يلا خذ بسرعه قبل يحذفونة : guiGetPosition guiGetSize onClientMouseEnter تساعدك #
-
triggerServerEvent("looper", getRootElement()) > triggerServerEvent("looper",localPlayer)
-
You have to create the marker in the same script .
-
عدلتة يوم شفت ردي؟
-
No : addEventHandler ( "onResourceStart", resourceRoot, function ( ) executeSQLQuery ( "CREATE TABLE IF NOT EXISTS SQL_Register (values)" ) end )
-
executeSQLQuery
-
Try this; local GameSystem.button = { guiCreateButton(14, 355, 147, 27, "......", false, GameSystem.window[1]), guiCreateButton(233, 357, 147, 27, ".....", false, GameSystem.window[1]) } addEventHandler("onClientMouseEnter", guiRoot, function() for i = 1, #GameSystem.button do if(source == GameSystem.button[i])then playSoundFrontEnd(4) break end end end ) Thank's,Tete work's .
-
Ok,See now what's the problem with this fuck function? GameSystem.button = {} GameSystem.button[1] = guiCreateButton(14, 355, 147, 27, "......", false, GameSystem.window[1]) GameSystem.button[2] = guiCreateButton(233, 357, 147, 27, ".....", false, GameSystem.window[1]) addEventHandler("onClientMouseEnter",root, function ( ) if ( source == GameSystem.button[1] or source == GameSystem.button[2] ) then playSoundFrontEnd(4) end end ) i changed the "Variables" and does not work too .