Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/02/19 in all areas

  1. ONLINE AND RUNNING GOOD TO JOIN 2/10/2019 JOIN MY DISCORD SERVER TO ADVERTISE YOUR MTA SERVER https://discord.gg/cugGVgR JOIN MY DISCORD SERVER TO ADVERTISE YOUR MTA SERVER https://discord.gg/cugGVgR Implicit gaming community - https://discord.gg/khx93Hj MTASERVER Welcome to the Implicit Introduction. We are a server that started in the begin of 2016 and is coming back in 04/19 Now we are almost alive for one year with ups and downs we came back in the game. - We want to bring back the roleplay as it was - Legal roleplay is very important in a roleplay server - ILLEGAL roleplay is important to but we are not a RPG server - We want to give everyone something to roleplay - We have an very nice administration team as they are ready to help everyone! - We allow everyone to come ingame as you speak english What do we offer you? We give you the experience to roleplay a good administration team working community and very friendly we offer everyone a faction wich need to have 3 faction members We want to give everyone something to roleplay with out faction or with a faction We have teamspeak almost up where you can communicate ------------------------------------------------------------------------------------------------------------------------------------------ We have new nice mappings we have an discord channel that you are free to join! [ Links below ] ⦁ 21-03-2019 ⦁ Roleplay ⦁ English ⦁ IP: mtasa://46.4.197.67:22003 ⦁ Discord: https://discord.gg/MC8jW7G ⦁ Find us on youtube YOUTUBE CHANNEL DJ set has been added to the script updated forums are up Forum and discord links ⦁ Discord: https://discord.gg/khx93Hj Forum is online: not online yet ⦁ Find us on youtube YOUTUBE CHANNEL JOIN MY DISCORD SERVER TO ADVERTISE YOUR MTA SERVER https://discord.gg/cugGVgR Greetingz from us all. Take a look ingame, any futher comments that will give us an bad reputation is being reported. JOIN MY DISCORD SERVER TO ADVERTISE YOUR MTA SERVER https://discord.gg/cugGVgR
    1 point
  2. Aqui o script completo. CLIENT-SIDE -- // TABELA DE VEÍCULOS QUE TERÃO NOVAS SIRENES local tVehicles = { [ 597 ] = true, [ 416 ] = true }; -- // TABELA DOS CLIENTES local tAudio = { }; -- // FUNÇÕES function fClientResourceStart( ) setWorldSoundEnabled( 17, 10, false, true ); setWorldSoundEnabled( 17, 11, false, true ); end function fPlayModifySiren( _, keyState ) local vehicle = getPedOccupiedVehicle( localPlayer ); if ( vehicle and tVehicles[ getElementModel( vehicle ) ] ) then if ( keyState == "down" ) then triggerServerEvent( "toggleSirens", resourceRoot, true ); elseif ( keyState == "up" ) then triggerServerEvent( "toggleSirens", resourceRoot, false ); end end end function fStartSiren( client ) if ( not tAudio[ client ] ) then if ( tAudio[ client ] and isElement( tAudio[ client ] ) ) then destroyElement( tAudio[ client ] ); end tAudio[ client ] = playSound3D( "sfx/siren.mp3", Vector3( getElementPosition( client ) ) ); setSoundVolume( tAudio[ client ], 1.0 ); setSoundMinDistance( tAudio[ client ], 1.0 ); setSoundMaxDistance( tAudio[ client ], 100.0 ); attachElements( tAudio[ client ], client ); end end function fStopSiren( client ) if ( tAudio[ client ] ) then if ( tAudio[ client ] and isElement( tAudio[ client ] ) ) then destroyElement( tAudio[ client ] ); tAudio[ client ] = nil; end end end -- // EVENTOS addEvent( "startSiren", true ); addEvent( "stopSiren", true ); addEventHandler( "startSiren", resourceRoot, fStartSiren ); addEventHandler( "stopSiren", resourceRoot, fStopSiren ); addEventHandler( "onClientResourceStart", resourceRoot, fClientResourceStart ); -- // KEYS bindKey( "h", "both", fPlayModifySiren ); SERVER-SIDE -- // FUNÇÕES function fToggleSirens( state ) if ( state ) then setVehicleSirensOn( getPedOccupiedVehicle( client ), false ); triggerClientEvent( root, "startSiren", resourceRoot, client ); else triggerClientEvent( root, "stopSiren", resourceRoot, client ); end end -- // EVENTOS addEvent( "toggleSirens", true ); addEventHandler( "toggleSirens", resourceRoot, fToggleSirens );
    1 point
  3. @NX_CI كلام كيلر صحيح , مافيه شيء خطا .
    1 point
  4. Thanks working but i have 2x warning here can you please help? WARNING: Bad argument @ 'getAccount' [Expected string at argument 1, got nil] WARNING: Bad argument @ 'getAccountPlayer' [Expected account at argument 1, got boolean] function DeleteVIP (command, accountName) local result = dbQuery(database,"SELECT * FROM vip") local poll = dbPoll(result, -1) for i,v in ipairs(poll) do local time = getRealTime() if (tonumber(v["viptime"]) < tonumber(time.timestamp)) and (tonumber(v["viptime"]) > 0) then dbExec(database, "DELETE FROM vip WHERE id = ?", tonumber(v["id"])) local account = getAccount(accountName) if getAccountPlayer(account) == tostring(v["acc"]) then local player = getAccountPlayer(account) outputChatBox("VIP: " .. accountName .. " ", player, 255, 255, 255, true) end end end dbFree(result) end setTimer(DeleteVIP, 6000000, 1)
    1 point
  5. @Peti Sorry, I was very busy with some other work, so couldn't make a reply. Yes, I missed defining the parameter on the client side. Thanks for that. However, about the main issue, the problem was with this triggerServerEvent As I forgot to change the extra element "localPlayer" which was passing the player data to the server-side function. Also, "getAccountFromName" was not really useful in the whole function so I replaced it with "getAccount(accName)" which works perfectly fine as expected. Also, there were a few typing mistakes in the code too, I've fixed them. I don't know what happened that day maybe I was just way too tired to check the code carefully. Thanks anyways. Pasting the fixed code for anyone who needs a reference in future. Client: function getMailFromAccount(accName) local accName = guiGetText(acceditbox) triggerServerEvent("getMail", resourceRoot, accName) end addEventHandler("onClientGUIClick", searchButton, getMailFromAccount, false) function getMailID(mailID) local eMail = mailID if (mailID) then guiSetText(mailoutput, mailID) end end addEvent("setMailOnLable", true) addEventHandler("setMailOnLable", resourceRoot, getMailID) function invalidAcc() guiSetText(mailoutput, "Invalid Account.") end addEvent("mailAccInvalid", true) addEventHandler("mailAccInvalid", resourceRoot, invalidAcc) Server: function getMailFromAccount(accName) local account = getAccount(accName) if (not account) then triggerClientEvent(client, "mailAccInvalid", resourceRoot) return false end local eMail = getAccountData(account, "accounts.email") triggerClientEvent(client, "setMailOnLable", resourceRoot, eMail) end addEvent("getMail", true) addEventHandler("getMail", resourceRoot, getMailFromAccount) This topic can be locked now.
    1 point
  6. yeah, yesterday 10 players who was bugged earlier joined the server to help me to test, and nobody get the bug again xdxdxdxd im so happy now, thnx
    1 point
  7. Ele buga se vc indentar de jeitos diferentes. Em algumas linhas vc usou tabulação e outras usou espaços. No fórum cada tabulação vale 8 espaços, quando na real deveria ser 4.
    1 point
  8. its working so good, the only one problem is at the line 20, local filePath... the table returns the filename without the file extension, so i used filepath = 'imagens/'..descricoes[name]..'.png' and its working, thnx, but i dont know if the real problem is fixed too with dxCreateTexture Hi loki, how are u? i didnot know this command, so i didnt tested it when the error appears, but using the userful function from iiyama, the problem is fixed for now, but ill still here seeing the memstat, thnx so much bro. guys, im thinking here... the table is in an shared type archive, the problem could be here?
    1 point
  9. This can also be caused when your client runs out of vmemory. make sure that you are cleaning up unused fonts, textures, render targets and shaders properly. To check your client memory use the /showmemstat command. Spam a few Windows and check to see if it depletes your memory each time it's opened. If the FreeForMTA number is too low functions like these stop working.
    1 point
  10. No, It's ok. Have you tried debugging your 'getAccountFromName'? Maybe put an outputChatBox and see if the function returns an acc. function getMailFromAccount(accName) local accName = guiGetText(acceditbox) outputChatBox(accName) triggerServerEvent("getMail", resourceRoot, localPlayer, accName) end Something like this. It is for testing purposes. If you don't get any account, check if the account exists. EDIT: If I'm correct, here you are passing a parameter to the function: triggerClientEvent(client, "setMailOnLable", client, eMail) but here you haven't defined anything: function getMailID(eMail) -- here if (eMail) then guiSetText(resultmail, "Result: "..eMail..".") end addEvent("setMailOnLable", true) addEventHandler("setMailOnLable", localPlayer, getMailID) end Also, try this: function getMailID(eMail) -- here if (eMail) then guiSetText(resultmail, "Result: "..eMail..".") end end addEvent("setMailOnLable", true) addEventHandler("setMailOnLable", localPlayer, getMailID)
    1 point
  11. Your mtasa.com domain blocked by Facebook. we can't share download links via fb anymore. redir.onlinelk.net/dl/mta redirect to mtasa.com & also blocked
    0 points
×
×
  • Create New...