-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
This better: bindKey("h", "down", function() if not isTimer(hT) and getElementModel(localPlayer) == 20 then local theHealth = getElementHealth(localPlayer) if (theHealth < 100) then setElementHealth(localPlayer, theHealth + 50) hT = setTimer(function() hT = nil end, 7000, 1) end end end)
-
Get latest version from here: https://nightly.multitheftauto.com
-
"Move fool i am trying to save the world here."
-
الكود تحشيش تفضل جرب ذا كلينت: local Font = dxCreateFont("Font.ttf", 20) addEventHandler("onClientRender", root, function() local msg = getElementData(root, "adminMSG") if msg and type(msg) =="table" then dxDrawText("#FF0000Admin : #FFFFFF"..msg[1], 22, 202, 180, 250, tocolor(150, 0, 0), 0.8, Font, "left", "top", false, false, true, true, false) dxDrawText(msg[2], 24, 222, 160, 235, tocolor(255, 255, 255, 255), 1, "default-bold", "left", "top", false, false, true, true, false) end end) bindKey("u", "down", "chatbox", "AM") سيرفر: local groupsTable = { "oneradmin", "Head.Admin", "Console", "big.Admin", } addCommandHandler("AM", function(player, commandName, ...) local account = getPlayerAccount(player) if account and not isGuestAccount(account) then local accName = getAccountName(account) local hasPermission for _, groupName in ipairs(groupsTable) do local group = aclGetGroup(groupName) if group then if isObjectInACLGroup("user."..accName, group) then hasPermission = true break end end end if hasPermission then setElementData(root, "adminMSG", {table.concat({...}, " "), getPlayerName(player)}) end end end) addCommandHandler("угЭ", function() setElementData(root, "adminMSG", nil) end)
-
1- You may have duplicate row in the table 'deliverys'. 2- You may have duplicate code. It is unlikely to be the loop cause as you have used return within the output and this will stop the loop and the function together which means there's duplicated code.
-
http://stackoverflow.com/questions/21273672/many-tables-or-rows-which-one-is-more-efficient-in-sql And maybe you should start learning SQL: http://www.w3schools.com/sql/
-
addEventHandler("onResourceStart", resourceRoot, function() local AllReports = executeSQLQuery("CREATE TABLE IF NOT EXISTS AllReport (PlrName, Subject, Memo)") if AllReports then outputDebugString("Sucsesfully Create SQL Table 'AllReport'") end end) addEvent("INSERT",true) addEventHandler("INSERT", root, function(PlrName, tSubject, tMemo) executeSQLQuery("INSERT INTO AllReport VALUES (?, ?, ?)", PlrName, tSubject, tMemo) outputChatBox("#FFF000Sucsesfully Send Report [ #00FF00"..tSubject.."#FFF000 ] To Servre Owner", source, 255, 255, 255, true) end)
-
تبي عناد كلمة خاص يغلق
-
باي بال 10$ مقابل 15$ كاش يو 50% عمولة
-
addEventHandler("onClientGUIClick", root, function() if source == Send then local tSubject = guiGetText(SendSubject) local tMeMo = guiGetText(SendMemo) local tPlrName = getPlayerName(localPlayer) if tSubject ~= "" and tSubject ~= " " and tMeMo ~= "" and tMeMo ~=" " then triggerServerEvent("INSERT", localPlayer, tPlrName, tSubject, tMeMo) end end end) addEventHandler("onResourceStart", resourceRoot, function() local AllReports = executeSQLQuery("CREATE TABLE IF NOT EXISTS AllReports (PlrName, Subject, Memo)") if AllReports then outputDebugString("Sucsesfully Create SQL Table 'AllReports'") end end) addEvent("INSERT",true) addEventHandler("INSERT", root, function(PlrName, tSubject, tMemo) executeSQLQuery("INSERT INTO AllReports VALUES (?, ?, ?)", PlrName, tSubject, tMemo) outputChatBox("#FFF000Sucsesfully Send Report [ #00FF00"..tSubject.."#FFF000 ] To Servre Owner", source, 255, 255, 255, true) end)
-
bindKey -- فنكشن زر guiGetVisible -- فنكشن للتحقق من وضع النافذه مخفي/ظاهر guiSetVisible -- تغير وضع النافذه اخفاء/اظهار showCursor -- تغير وضع الماوس اخفاء/اظهار
-
You don't need a function and therefore there's no need for event. txd = engineLoadTXD ( "ak47.txd" ) engineImportTXD ( txd, 355 ) dff = engineLoadDFF ( "ak47.dff", 355 ) engineReplaceModel ( dff, 355 )
-
function replaceskin() txd = engineLoadTXD ( "ak47.txd" ) engineImportTXD ( txd, 355 ) dff = engineLoadDFF ( "ak47.dff", 355 ) engineReplaceModel ( dff, 355 ) end No event?
-
Post the code.
-
https://wiki.multitheftauto.com/wiki/Server_mtaserver.conf#resource
-
local client = getLocalPlayer() window = guiCreateWindow(487,214,398,270,"Spawner",false) guiWindowSetSizable(window,false) guiSetVisible(window,false) grid = guiCreateGridList(9,21,380,212,false,window) guiGridListAddColumn(grid,"ID:",0.9) yes = guiCreateButton(28,238,148,23,"Spawn",false,window) no = guiCreateButton(224,238,148,23,"Close",false,window) addEvent("gui",true) addEventHandler("gui",root, function (Table) theMarker = marker guiSetVisible(window,true) showCursor(true) guiGridListClear(grid) for i,v in pairs(Table) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, i, false, false) guiGridListSetItemText(grid, row, 2, getVehicleNameFromModel(v), false, false) end end)
-
bindkey bindKey K كبتل مو سمول
-
إذا تبي تحط كلام بالشاشة تستخدم الفنكشن ذا dxDrawText Event: 'onClientRender' او هذا guiCreateLabel guiSetVisible
-
ي استاذ الكود سيرفر مو كلينت ترا واضح من الأفنت المستخدم ان الكود سيرفر
