-
Posts
1,990 -
Joined
-
Last visited
-
Days Won
2
Posts posted by #RooTs
-
-
very nice job.
- 1
-
6 hours ago, The_GTA said:
... addEventHandler("onClientTransferBoxProgressChange", root, function(size, total) barprogress = ( size / total ) end ) addEventHandler("onClientTransferBoxVisibilityChange", root, function(vis) barvisible = vis end ) barvisible = isTransferBoxVisible()
what variable do I put in DX?
addEventHandler("onClientTransferBoxProgressChange", root, function(size, total) barprogress = ( size / total ) end ) addEventHandler("onClientTransferBoxVisibilityChange", root, function(vis) barvisible = vis end ) barvisible = isTransferBoxVisible() dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*barvisible, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true) --or dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*barprogress, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true)
sorry, but I confused
- 1
-
i need the load function to put in dx
Ex:
getTransferBoxProgress()
-
I want to know if there is any way to make this example in DX
local function progressChange(downloadedSize, totalSize) if not data.browser then return false end if isVisible == false then showTransferBox() else local percentage = floor(min((downloadedSize / totalSize) * 100, 100)) executeBrowserJavascript(data.browser, "document.querySelector('.bar-progress').style.width = '" .. percentage .. "%'") end end addEventHandler("onClientTransferBoxProgressChange", root, progressChange)
I want to make a slash in DX
my example:
--maybe in Render ?? addEventHandler("onClientTransferBoxProgressChange", root, function(downloadedSize, totalSize) local percentage = math.min((downloadedSize / totalSize) * 100, 100) dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*percentage, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true) end) --is it possible to make it inside the render? addEventHandler("onClientRender", root, function(downloadedSize, totalSize)
-
wow..no help here. all ignorant folks. where is the support of this forum?
OMG
I being ignored for what reason? -
I only see views and no solution? can someone help me please
-
ops..
meta.xml
Spoiler<meta> <info author="Ryancit2" name="EMail Sender" version="1.2.0" type="script"/> <script src="client.lua" type="client"/> <script src="server.lua" type="server"/> </meta>
-
bem útil esse Topico. (Y)
-
<group name="Console"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user.Console"></object> -- se você removeu essa linha da ACL e for usar o CMD do MTA não vai conseguir mesmo.. </group>
coloque essa linha de novo no grupo CONSOLE se quiser usar o CMD do MTA<object name="user.Console"></object>
Caso não saiba o que é o CMD do MTA é essa janela ai
-
hello guys.
initially, sorry me for my english.
I'm having difficulty using this feature.
https://community.multitheftauto.com/index.php?p=resources&s=details&id=11231I've already done the entire procedure. tested everything
I did the entire procedure. but it didn't work
OBS: I also changed the ACL. i tried everything
( any solution? please help )
server.luaSpoilerlocal randomMails = {"[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]"} function fromRandom() return randomMails[math.random(#randomMails)] end function sendCustomMail(subject, header, sendto, mail) local header = "From: "..subject.." <"..(header or fromRandom())..">" callRemote("http://multitheftauto.rf.gd/sendemail/mailer.php", returns, subject, header, sendto, mail) -- This website is not available any more so add the PHP files in your own website and put URL here. end addEvent("sendEMail", true) addEventHandler("sendEMail", root, sendCustomMail) function returns(msg, num) if msg == "ERROR" or (not msg) then outputDebugString("E-Mail not sent due to webpage errors, check the script and/or page provided.", 2) else outputDebugString(msg, num or 3) end end
cliente.lua
Spoilerlocal screenW, screenH = guiGetScreenSize() email_wnd = guiCreateWindow((screenW - 366) / 2, (screenH - 408) / 2, 366, 408, "Ingame E-Mail Service", false) guiWindowSetSizable(email_wnd, false) subject_edit = guiCreateEdit(9, 22, 347, 27, "Subject...", false, email_wnd) header_edit = guiCreateEdit(9, 55, 195, 27, "Send from...", false, email_wnd) sendto_edit = guiCreateEdit(9, 87, 347, 27, "Send to...", false, email_wnd) random_check = guiCreateCheckBox(204, 55, 152, 27, "Send from random mail?", false, false, email_wnd) mail_mem = guiCreateMemo(9, 150, 347, 223, "You can use any HTML codes in this message body...", false, email_wnd) send_btn = guiCreateButton(9, 375, 174, 23, "Send!", false, email_wnd) guiSetProperty(send_btn, "NormalTextColour", "FFAAAAAA") close_btn = guiCreateButton(182, 375, 174, 23, "Close", false, email_wnd) guiSetProperty(close_btn, "NormalTextColour", "FFAAAAAA") local buttons = {} buttons.bold = guiCreateButton(10, 122, 49, 27, "Bold", false, email_wnd) buttons.italic = guiCreateButton(69, 122, 49, 27, "Italic", false, email_wnd) buttons.size = guiCreateButton(128, 122, 49, 27, "Size", false, email_wnd) buttons.next = guiCreateButton(187, 122, 49, 27, "Next Line", false, email_wnd) buttons.url = guiCreateButton(246, 122, 49, 27, "Insert URL", false, email_wnd) buttons.img = guiCreateButton(305, 122, 49, 27, "Insert Image", false, email_wnd) guiSetVisible(email_wnd, false) function toggleGUI() if (guiGetVisible(email_wnd)) then guiSetVisible(email_wnd, false) showCursor(false) else guiSetVisible(email_wnd, true) showCursor(true) end end addEventHandler("onClientGUIClick", close_btn, toggleGUI, false) addCommandHandler("email", toggleGUI) function sendMail() local subject = guiGetText(subject_edit) if guiCheckBoxGetSelected(random_check) then header = false else header = guiGetText(header_edit) end local sendto = guiGetText(sendto_edit) local mail = guiGetText(mail_mem) if (#subject < 5) or (#sendto < 5) or (#mail < 5) then outputChatBox("Email not sent: One of the required fields had less than 5 characters!", 200, 0, 0) return end triggerServerEvent("sendEMail", resourceRoot, subject, header, sendto, mail) end addEventHandler("onClientGUIClick", send_btn, sendMail, false) function handleRandom() if guiCheckBoxGetSelected(random_check) then guiSetEnabled(header_edit, false) else guiSetEnabled(header_edit, true) end end addEventHandler("onClientGUIClick", random_check, handleRandom, false) -- Below are functions for HTML code buttons... for k, v in pairs(buttons) do guiSetProperty(v, "NormalTextColour", "FFAAAAAA") end function resetMemo() local txt = guiGetText(mail_mem) if string.find(txt, "You can use any HTML codes in this message body...") then guiSetText(mail_mem, "") end end addEventHandler("onClientGUIClick", mail_mem, resetMemo, false) function handleButtons() if source == buttons.bold then guiSetText(mail_mem, guiGetText(mail_mem).."<b></b>") -- guiMemoSetCaretIndex(mail_mem, guiMemoGetCaretIndex(mail_mem) + 3) elseif source == buttons.italic then guiSetText(mail_mem, guiGetText(mail_mem).."<i></i>") -- guiMemoSetCaretIndex(mail_mem, guiMemoGetCaretIndex(mail_mem) + 3) elseif source == buttons.size then guiSetText(mail_mem, guiGetText(mail_mem).."<font size='3'></font>") -- guiMemoSetCaretIndex(mail_mem, guiMemoGetCaretIndex(mail_mem) + 15) elseif source == buttons.next then guiSetText(mail_mem, guiGetText(mail_mem).."<br>") -- guiMemoSetCaretIndex(mail_mem, guiMemoGetCaretIndex(mail_mem) + 4) elseif source == buttons.url then guiSetText(mail_mem, guiGetText(mail_mem).."<a href='URLHERE'></a>") -- guiMemoSetCaretIndex(mail_mem, guiMemoGetCaretIndex(mail_mem) + 18) elseif source == buttons.img then guiSetText(mail_mem, guiGetText(mail_mem).."<img src='IMAGEURL.png'>") -- guiMemoSetCaretIndex(mail_mem, guiMemoGetCaretIndex(mail_mem) + 24) else return end end addEventHandler("onClientGUIClick", root, handleButtons)
mailer.php
Spoiler<?php include( "mta_sdk.php" ); $input = mta::getInput(); $subject = $input[0]; $email = $input[2]; $message = $input[3]; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= $input[1] . "\r\n"; $mailSent = mail($email, $subject, $message, $headers); if ($mailSent) { mta::doReturn("Email sent to ".$email); echo "\r\nMail sent to $email with text: $message!"; } else { mta::doReturn("Failed to send email to ".$email." - Unknown error, restart script and check webpage!", 2); } ?>
my files in callRemote
http://multitheftauto.rf.gd/sendemail/ -
please, does update to resource. URL broken
-
-
pronto esse é o code dele com os <>
SpoilercountdRunning = false function conteoTick (thePlayer) se restante == 0 then killTimer (conteoTimer) playSoundFrontEnd (root, 45) outputChatBox ("VAI VAI VAI!", root, 0,188,0) countdRunning = false else playSoundFrontEnd (root, 44) local factorGreen = 255 / (countdStart-1) local resultadoGreen = factorGreen * restante-factorGreen local factorSpaces = 12 / (countdStart-1) local resultSpaces = math.floor (factorSpaces * restante-factorSpaces) local permanentStr = "" para i = 0, resultSpaces do restanteStr = restanteStr .. "" end restanteStr = restanteStr .. restante outputChatBox (restanteStr, root, 255, resultadoGreen, 0) restante = restante - 1 end end addCommandHandler ("contar", função (thePlayer, cmd, startArg) --addCommandHandler ("countd", função (thePlayer , cmd, startArg) --addCommandHandler ("contagem regressiva", função (thePlayer, cmd, startArg) --addCommandHandler ("conteo", função (thePlayer, cmd, startArg) se countdRunning then outputChatBox ("Já existe uma contagem regressiva atual" , thePlayer) return else if startArg and tonumber (startArg) then countdStart = tonumber (startArg) else countdStart = 3 end if countdStart ~ = 3 and countdStart ~ = 4 then outputChatBox ("Disponível apenas: 3 e 4", thePlayer, 255,0,0) return end restante = countdStart outputChatBox (getPlayerName (thePlayer) .. "# FF8C00começouçou uma contagem regressiva ", root, 255.255.255 , true) conteoTick (thePlayer) conteoTimer = setTimer (conteoTick, 1000,0, thePlayer) countdRunning = true end end)
-
-
this was my last attempt
function save(reason, quitType) local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (quitType == "Timed out") or (reason == "Quit") or (reason == "Kicked") then if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end addEventHandler("onPlayerQuit", getRootElement(), save)
-
hey guys.
I am with problemas with my save system.
I can't find a way to save the content when the player timed out
part of my codeSpoilerfunction playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerMoney = getAccountData (theCurrentAccount, "funmodev2-money") local playerSkin = getAccountData (theCurrentAccount, "funmodev2-skin") local playerHealth = getAccountData (theCurrentAccount, "funmodev2-health") local playerArmor = getAccountData (theCurrentAccount, "funmodev2-armor") local playerX = getAccountData (theCurrentAccount, "funmodev2-x") local playerY = getAccountData (theCurrentAccount, "funmodev2-y") local playerZ = getAccountData (theCurrentAccount, "funmodev2-z") local playerInt = getAccountData (theCurrentAccount, "funmodev2-int") local playerDim = getAccountData (theCurrentAccount, "funmodev2-dim") local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") local playerTeam = getAccountData (theCurrentAccount, "funmodev2-Team") local playerWeaponID0 = getAccountData (theCurrentAccount, "funmodev2-weaponID0") local playerWeaponID1 = getAccountData (theCurrentAccount, "funmodev2-weaponID1") local playerWeaponID2 = getAccountData (theCurrentAccount, "funmodev2-weaponID2") local playerWeaponID3 = getAccountData (theCurrentAccount, "funmodev2-weaponID3") local playerWeaponID4 = getAccountData (theCurrentAccount, "funmodev2-weaponID4") local playerWeaponID5 = getAccountData (theCurrentAccount, "funmodev2-weaponID5") local playerWeaponID6 = getAccountData (theCurrentAccount, "funmodev2-weaponID6") local playerWeaponID7 = getAccountData (theCurrentAccount, "funmodev2-weaponID7") local playerWeaponID8 = getAccountData (theCurrentAccount, "funmodev2-weaponID8") local playerWeaponID9 = getAccountData (theCurrentAccount, "funmodev2-weaponID9") local playerWeaponID10 = getAccountData (theCurrentAccount, "funmodev2-weaponID10") local playerWeaponID11 = getAccountData (theCurrentAccount, "funmodev2-weaponID11") local playerWeaponID12 = getAccountData (theCurrentAccount, "funmodev2-weaponID12") local playerWeaponAmmo0 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo0") local playerWeaponAmmo1 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo1") local playerWeaponAmmo2 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo2") local playerWeaponAmmo3 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo3") local playerWeaponAmmo4 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo4") local playerWeaponAmmo5 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo5") local playerWeaponAmmo6 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo6") local playerWeaponAmmo7 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo7") local playerWeaponAmmo8 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo8") local playerWeaponAmmo9 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo9") local playerWeaponAmmo10 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo10") local playerWeaponAmmo11 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo11") local playerWeaponAmmo12 = getAccountData (theCurrentAccount, "funmodev2-weaponAmmo12") spawnPlayer (source, playerX, playerY, playerZ +1, 0, playerSkin, playerInt, playerDim) setPlayerMoney (source, playerMoney) setTimer (setElementHealth, 500, 1, source, playerHealth) setTimer (setPedArmor, 500, 1, source, playerArmor) setTimer (setPlayerWantedLevel, 500, 1, source, playerWanted) giveWeapon(source, playerWeaponID0, playerWeaponAmmo0, true) giveWeapon(source, playerWeaponID1, playerWeaponAmmo1, false) giveWeapon(source, playerWeaponID2, playerWeaponAmmo2, false) giveWeapon(source, playerWeaponID3, playerWeaponAmmo3, false) giveWeapon(source, playerWeaponID4, playerWeaponAmmo4, false) giveWeapon(source, playerWeaponID5, playerWeaponAmmo5, false) giveWeapon(source, playerWeaponID6, playerWeaponAmmo6, false) giveWeapon(source, playerWeaponID7, playerWeaponAmmo7, false) giveWeapon(source, playerWeaponID8, playerWeaponAmmo8, false) giveWeapon(source, playerWeaponID9, playerWeaponAmmo9, false) giveWeapon(source, playerWeaponID10, playerWeaponAmmo10, false) giveWeapon(source, playerWeaponID11, playerWeaponAmmo11, false) giveWeapon(source, playerWeaponID12, playerWeaponAmmo12, false) setCameraTarget (source, source) fadeCamera(source, true, 2.0) else spawnPlayer (source, 1481.0855712891, -1771.2996826172, 18.795753479004, 0,78, 0, 0) setPlayerMoney (source, 200) setCameraTarget (source, source) fadeCamera(source, true, 2.0) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onLogout () kickPlayer (source, nil, "Logging out is disallowed.") end addEventHandler ("onPlayerLogout", getRootElement(), onLogout) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) setAccountData (account, "funmodev2-money", tostring (getPlayerMoney (source))) setAccountData (account, "funmodev2-skin", tostring (getPedSkin (source))) setAccountData (account, "funmodev2-health", tostring (getElementHealth (source))) setAccountData (account, "funmodev2-armor", tostring (getPedArmor (source))) setAccountData (account, "funmodev2-R", r) setAccountData (account, "funmodev2-G", g) setAccountData (account, "funmodev2-B", b) setAccountData (account, "funmodev2-x", x) setAccountData (account, "funmodev2-y", y) setAccountData (account, "funmodev2-z", z) setAccountData (account, "funmodev2-int", getElementInterior (source)) setAccountData (account, "funmodev2-dim", getElementDimension (source)) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) setAccountData (account, "funmodev2-weaponID0", getPedWeapon (source, 0)) setAccountData (account, "funmodev2-weaponID1", getPedWeapon (source, 1)) setAccountData (account, "funmodev2-weaponID2", getPedWeapon (source, 2)) setAccountData (account, "funmodev2-weaponID3", getPedWeapon (source, 3)) setAccountData (account, "funmodev2-weaponID4", getPedWeapon (source, 4)) setAccountData (account, "funmodev2-weaponID5", getPedWeapon (source, 5)) setAccountData (account, "funmodev2-weaponID6", getPedWeapon (source, 6)) setAccountData (account, "funmodev2-weaponID7", getPedWeapon (source, 7)) setAccountData (account, "funmodev2-weaponID8", getPedWeapon (source, 8)) setAccountData (account, "funmodev2-weaponID9", getPedWeapon (source, 9)) setAccountData (account, "funmodev2-weaponID10", getPedWeapon (source, 10)) setAccountData (account, "funmodev2-weaponID11", getPedWeapon (source, 11)) setAccountData (account, "funmodev2-weaponID12", getPedWeapon (source, 12)) setAccountData (account, "funmodev2-weaponAmmo0", getPedTotalAmmo (source, 0)) setAccountData (account, "funmodev2-weaponAmmo1", getPedTotalAmmo (source, 1)) setAccountData (account, "funmodev2-weaponAmmo2", getPedTotalAmmo (source, 2)) setAccountData (account, "funmodev2-weaponAmmo3", getPedTotalAmmo (source, 3)) setAccountData (account, "funmodev2-weaponAmmo4", getPedTotalAmmo (source, 4)) setAccountData (account, "funmodev2-weaponAmmo5", getPedTotalAmmo (source, 5)) setAccountData (account, "funmodev2-weaponAmmo6", getPedTotalAmmo (source, 6)) setAccountData (account, "funmodev2-weaponAmmo7", getPedTotalAmmo (source, 7)) setAccountData (account, "funmodev2-weaponAmmo8", getPedTotalAmmo (source, 8)) setAccountData (account, "funmodev2-weaponAmmo9", getPedTotalAmmo (source, 9)) setAccountData (account, "funmodev2-weaponAmmo10", getPedTotalAmmo (source, 10)) setAccountData (account, "funmodev2-weaponAmmo11", getPedTotalAmmo (source, 11)) setAccountData (account, "funmodev2-weaponAmmo12", getPedTotalAmmo (source, 12)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) function onWasted(totalAmmo, killer, killerWeapon, bodypart, stealth) if not( isGuestAccount (getPlayerAccount(source)) ) then local theWeapon = getPedWeapon (source) local weaponAmmo = getPedTotalAmmo (source) fadeCamera (source, false) setTimer (spawnPlayer, 1000, 1, source, 2036.1735839844, -1413.0563964844, 16.9921875, 0, getPedSkin (source), 0, 0, getPlayerTeam(source)) setTimer (setCameraTarget, 1250, 1, source, source) setTimer (fadeCamera, 2000, 1, source, true) setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true) end end addEventHandler ("onPlayerWasted", getRootElement(), onWasted) --- function setTeam() local account = getPlayerAccount(source) -- gets players account local team = getAccountData (account, "team") -- gets players team if (team) and getTeamFromName(team) then setPlayerTeam(source, getTeamFromName(team)) -- sets players team end end addEventHandler("onPlayerLogin",root,setTeam) -- sets players team on login function save() local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end addEventHandler("onPlayerQuit", getRootElement(), save)
my intention is to save all this content within these events- "Unknown"
- "Quit"
- "Kicked"
- "Banned"
- "Bad Connection"
- "Timed out" -- event to save
save mostly within the event "time out"
-
-
Olá amigos, olá amigas.
estou dando uma "estudada". e estou dando uma atualizada em um "Save-System" meu que tenho aqui.
queria saber sobre o evento "Timed out" se existe uma maneira de setar os meus dados no "timed out" assim como no "onPlayerQuit"addEventHandler("onPlayerQuit", getRootElement(), save)
Eu dei uma pequena pesquisada mais não intendi os argumentos sobre "quitType"
eu quero salvar meus "itens" nesses argumentos, principalmente no "timed out"- "Unknown"
- "Quit"
- "Kicked"
- "Banned"
- "Bad Connection"
- "Timed out"
parte do meu code
function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) local r,g,b = getPlayerNametagColor (source) setAccountData (account, "funmodev2-money", tostring (getPlayerMoney (source))) setAccountData (account, "funmodev2-skin", tostring (getPedSkin (source))) setAccountData (account, "funmodev2-health", tostring (getElementHealth (source))) setAccountData (account, "funmodev2-armor", tostring (getPedArmor (source))) setAccountData (account, "funmodev2-R", r) setAccountData (account, "funmodev2-G", g) setAccountData (account, "funmodev2-B", b) setAccountData (account, "funmodev2-x", x) setAccountData (account, "funmodev2-y", y) setAccountData (account, "funmodev2-z", z) setAccountData (account, "funmodev2-int", getElementInterior (source)) setAccountData (account, "funmodev2-dim", getElementDimension (source)) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) setAccountData (account, "funmodev2-weaponID0", getPedWeapon (source, 0)) setAccountData (account, "funmodev2-weaponID1", getPedWeapon (source, 1)) setAccountData (account, "funmodev2-weaponID2", getPedWeapon (source, 2)) setAccountData (account, "funmodev2-weaponID3", getPedWeapon (source, 3)) setAccountData (account, "funmodev2-weaponID4", getPedWeapon (source, 4)) setAccountData (account, "funmodev2-weaponID5", getPedWeapon (source, 5)) setAccountData (account, "funmodev2-weaponID6", getPedWeapon (source, 6)) setAccountData (account, "funmodev2-weaponID7", getPedWeapon (source, 7)) setAccountData (account, "funmodev2-weaponID8", getPedWeapon (source, 8)) setAccountData (account, "funmodev2-weaponID9", getPedWeapon (source, 9)) setAccountData (account, "funmodev2-weaponID10", getPedWeapon (source, 10)) setAccountData (account, "funmodev2-weaponID11", getPedWeapon (source, 11)) setAccountData (account, "funmodev2-weaponID12", getPedWeapon (source, 12)) setAccountData (account, "funmodev2-weaponAmmo0", getPedTotalAmmo (source, 0)) setAccountData (account, "funmodev2-weaponAmmo1", getPedTotalAmmo (source, 1)) setAccountData (account, "funmodev2-weaponAmmo2", getPedTotalAmmo (source, 2)) setAccountData (account, "funmodev2-weaponAmmo3", getPedTotalAmmo (source, 3)) setAccountData (account, "funmodev2-weaponAmmo4", getPedTotalAmmo (source, 4)) setAccountData (account, "funmodev2-weaponAmmo5", getPedTotalAmmo (source, 5)) setAccountData (account, "funmodev2-weaponAmmo6", getPedTotalAmmo (source, 6)) setAccountData (account, "funmodev2-weaponAmmo7", getPedTotalAmmo (source, 7)) setAccountData (account, "funmodev2-weaponAmmo8", getPedTotalAmmo (source, 8)) setAccountData (account, "funmodev2-weaponAmmo9", getPedTotalAmmo (source, 9)) setAccountData (account, "funmodev2-weaponAmmo10", getPedTotalAmmo (source, 10)) setAccountData (account, "funmodev2-weaponAmmo11", getPedTotalAmmo (source, 11)) setAccountData (account, "funmodev2-weaponAmmo12", getPedTotalAmmo (source, 12)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit)
para falar que não tentei, tentei fazer usando uma "IF".
if (reason == "Timed out") then --code end
mais não deu certo..
-
Vídeo?
-
this resource not contain author
https://community.multitheftauto.com/index.php?p=resources&s=details&id=6665 -
Já tentou usar
setAccountData
Veja o exemplo da wiki e tente fazer... é easy
Ah e outra coisa.. pare de usar "não" "sim"
Use os padrões ( true e false ) nos elementos
- 1
-
Pode fazer um video e postar aqui para a gente ver isso?
Pode ser algo em seu servidor. E não temos como saber o que é.
-
20 hours ago, Lord Henry said:
Não sei qual o limite. Não está especificado na Wiki. Mas eu consideraria o máximo 10.
Blz man.. vlw
-
On 09/03/2020 at 13:22, Lord Henry said:
Na verdade depende. Vc está especificando grupos de prioridade. Isso significa que se vc colocar outro resource com 1 de prioridade, ele pode ser baixado antes deste, pois ambos teriam a mesma prioridade.
Mas sim, os resources com prioridade positiva serão baixados antes dos que não tem prioridade ou que estejam com prioridade negativa.
Da mesma forma, se você colocar outro resource com prioridade 2, ele será baixado antes dos que possuem prioridade 1.
E esse numero tem limite ? Ou soh vai de 0 à 10 ?
Report community resources here!
in Suggestions
Posted
hello. I haven't been on here for some time. Is this topic still active for complaints?
this resource contains external download link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18852
Staff edit: Sorted (all uploads from that user violated regulations and were removed)