• Announcements

    • jhxp

      Forums are online again after a maintenance.   18/03/17

      MTA Forums maintenance is completed, although some automatic time-heavy tasks are still in process and will be finished eventually in background. Expect some features such as Forum Search to not display all results until all processes are finished. Please let us know if you spot a forum feature that worked correctly before the maintenance but does not work anymore now. Thanks. --MTA Team

1B0Y

Members
  • Content count

    139
  • Joined

  • Last visited

Community Reputation

10 Decent

About 1B0Y

  • Rank
    Poot-butt
  • Birthday 19/05/96

Details

  • Location
    United Kingdom
  • Occupation
    Founder of Retr0 Space
  • Interests
    Music, games, coding, designing, fishing, etc...
  1. Is this with my compiler or IIYAMAs?
  2. Reinstall GTA SA
  3. Reinstall the game. problem solved.
  4. Well, Clippy is already present in our project: Sooo, anything's possible in this project haha
  5. It's actually Dutch It's based on one of the old old DM servers back in DP2 days which me and my other project manager DLmass adored. We're now re-introducing that into the MTA community as a public closed-source gamemode
  6. Oh wait, my bad... removeAccountData is a "useful function" lmao. I honestly haven't touched account functions in years as I create a custom account system with (My)SQL
  7. lua

    @Anubhav by the term "learning", I meant the terms of what the function does
  8. The resource was coded from scratch, as it was a tool we used to compile all of our client-side (and I think server side files) for our old project GTA:Life. On top of that, the resource was made a month before actually being released onto the MTA community. The reason for releasing: We decided to not continue the project due to the complexity and time required to get a playable version of the game mode ready in order for release.
  9. Add an export clientside to call the server, and then trigger the event to the client to fix this. Delaying it can still be unpredictable due to the download rate of the client
  10. removeAccountData also exists btw
  11. mtadayz

    Any errors/warnings reported into debugscript?
  12. addEventHandler ( 'onPlayerWeaponSwitch',root, function ( _,aMyWeapon ) local curWeapon = getPedWeapon(source) if isElementWithinColShape( source, zone1 ) and curWeapon == 38 then toggleControl( source,'fire',false ) outputChatBox ( "You Can not use This Weapon in this Event", source, 255, 100, 0,true ) else toggleControl( source,'fire',true ) end end ) Give this a try
  13. lua

    Ideal way to learn Lua is to create small little scripts and start using some of the functions that are present in the Wiki. Learning the functions and seeing how they work is your foot into the door of scripting Lua. Once you get comfortable of these functions, you can then start to develop a mindset to the features you want to design. For example: Bank System: What do I need? set/getAccountData GUI (or commands?) Validation technique (such as checking if the player has the correct amount of money before depositing, and vise-versa from the bank account) ... Hopefully this should help yah
  14. addEventHandler("onPlayerLogin",root, function() local account = getPlayerAccount(source) setElementData(source,"account",getAccountName(account),true) --Syncs to the client end end) Setting the 4th argument to true will sync the element data from the server to client.
  15. function setAccountCoinValue(player,amount) if not player or not (isElement(player)) then return false end --Prevents errors from occuring when the player element isn't defined. local account = getPlayerAccount(player) --Make sure the player is logged in if isGuestAccount(account) then return false end --Set the coins value in the player's account setAccountData(account,"coins",amount) return true end function getAccountCoinValue(player) if not player or not (isElement(player)) then return false end local account = getPlayerAccount(player) if isGuestAccount(account) then return false end return getAccountData(account,"coins") or 0 end Create a function to call these functions when the player joins, quits, and when the player's coin value is changed to save it to their account