Search the Community

Showing results for tags 'source'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 7 results

  1. As the title says, i'm releasing a dayz gamemode that i used to work for quite a some time. For base of this gamemode i used this open source gamemode that i found on github, so all credits goes to him for that but i've changed so much that not much is left of it. Also there are barely any bugs, only what i'm aware of is something related to airplane crash sites (or whatever it was called, forgot). Also for heads up, some parts were inspired by a Russian dayz server called Dayz Ultimate, so code is not stolen and is 100% made by me and accordingly some credits also goes there. Everything else is made by me except probably art related things, but code is written by me. It has language system also built in, so you can add your native language if you open up language file, just make sure you later add an option to login panel after that and of course there are lots more features, even some features that are not being used as it was in wip state. here are some screenshots and you can download it here P.S there were some security protection things added that i removed in code before uploading, so if it isn't working as i didn't test it after removing it, then let me know but it should be fine. also there are some config files in scripts folder that you can look into for some changes.
  2. function enableAccount ( accountJ ) if not isGuestAccount ( accountJ ) then if accountJ then local source = getAccountPlayer ( accountJ ) local XP = getAccountData ( accountJ, "XP" ) or 0 setElementData ( source, "XP", XP ) local Level = getAccountData ( accountJ, "Level" ) or 0 setElementData ( source, "Level", Level ) end end end function saveAccount ( accountJ ) if accountJ then local source = getAccountPlayer ( accountJ ) local XP = getElementData(source, "XP" ) or 0 setAccountData ( accountJ, "XP", XP ) local Level = getElementData(source, "Level" ) or 0 setAccountData ( accountJ, "Level", Level ) end end ---- function restartScript ( res ) if res == getThisResource ( ) then for i, player in ipairs ( getElementsByType ( "player" ) ) do local acc = getPlayerAccount ( player ) if not isGuestAccount ( acc ) then enableAccount ( acc ) end end end end addEventHandler ( "onResourceStart", getRootElement ( ), restartScript ) addEventHandler("onPlayerLogin", root, function( _, acc ) enableAccount ( acc ) end ) function stopScript (res) if res == getThisResource ( ) then for i, player in ipairs ( getElementsByType ( "player" ) ) do local acc = getPlayerAccount ( player ) if not isGuestAccount ( acc ) then saveAccount ( acc ) end end end end addEventHandler ( "onResourceStop", getRootElement ( ), stopScript ) function playerQuit ( quitType ) local acc = getPlayerAccount ( source ) if not isGuestAccount ( acc ) then if acc then saveAccount ( acc ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), playerQuit ) function uparLevel(source) local exp = getElementData(source, "XP") local exps = tonumber(getElementData(source, "XP")) local lvls = tonumber(getElementData(source, "Level")) if lvls and exps then local needexp = 1000 if not exp then setElementData(source, "Level", 0) setElementData(source, "XP", 0) else if exps >= needexp then setElementData(source, "Level", lvls + 1) setElementData(source, "XP", 0) end end end end setTimer(uparLevel, 60, 1) Esse é meu código de level, mas está com três erros, esse level será exibido em uma hud, já estou ciente que não é possível usar source em um setTimer(), ja coloquei um for i, v in pair(getElementByType), mas quando eu coloco ele generaliza e seta o elementdata para todos os players.
  3. Server closed, mode resources
  4. Guest


    guys i want to ask you when i type ' source ' and when i type ' thePlayer' for example: outputChatBox ( "Text", source ) outputChatBox ( "Text", thePlayer )
  5. function test() setElementPosition ( mark, pos.x,pos.y,pos.z ) end addEventHandler("onMarkerHit", mark, test) this is the code. if i hit the marker, the element position change for all players.. how to fix this? sorry for my bad english.
  6. Open Source Roleplay Hi there. As most of you know there aren't many strict roleplay servers on Multi Theft Auto for various reasons; one of the main reasons being that there aren't any roleplay resources out there for one to download and create a server, so people resort to using leaked roleplay scripts from previously hacked servers, which results in DDoS wars, hacking, revenge, servers getting taken down, and so on. In the end, only one server stays up and that is the one and only OwlGaming that has been around since 2014. Ofcourse you can find old and outdated roleplay scripts on the internet that you could use for your server for example vG and uG scripts. But there's no point in using those since they're old, malfunction and players dislike them. For a long time no one has ever decided to work publicly on an open source roleplay resource pack. I think if we want MTA to evolve it should be time that we all unite and get our hands on some RP scripts that anyone can download and make a server with. You may ask: wouldn't this mean there'd be tons of identical roleplay servers out there? There would, but that's actually the point. If we want MTA to grow and attract more players to it this is the solution: allow people to create their own rolpeplay servers legally without using any stolen scripts. This thread is a suggestion and its intention is to discuss this matter and maybe gather scripters to create this unique Open Source Roleplay resource pack for the community to use. It doesn't need to be super high quality and detailed. It should contain the basic scripts that allow roleplay to take place. For those that are not very familiar with it let me list some down: • Account System • Login Panel • Tutorial • Vehicle System • Property/Interior System • Bank/Currency System • Inventory System • Faction System • Elevator System • Faction System • Gate System • Fuel System • Chat System • GPS Sytem | Map Blips • Help System • Admin System • Radio System • Phone System • Donation System • Event System ... Let's end the suffering, the DDoS wars, the hacking, the leaked scripts and let's all join together and create the best roleplay scripts out there! It won't take long to make and it won't require a lot of effort if done in a large team of contributors. And thanks to MTA's almost non-existing scripting limitatios we can beat SAMP in this! Leave your opinion and comment below. Cheers. <3
  7. Hi! I have a faction panel, and I want to do that I have a list of faction vehicles with label, and when I click one of these, give me informations of the clicked vehicle. With the members(players) I can do it, because there is a getPlayerFromName. But with vehicles how can I do this?