Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. You just download the font and create a text in Photoshop or any other photo editing software that lets you save .png's and create text. Or download the image and crop the numbers one by one. Or you join his server, download the images and use them lol
  2. You'd need to make a new function for it. Something like: -- Usage: math.randomEx( 1, 10, 2,3,4,5,6 ) function math.randomEx( min, max, ... ) local bExcluded; local iNum; repeat math.randomseed( getTickCount( ) ); bExcluded = false; iNum = math.random( min, max ); for _, iVal in ipairs( arg ) do if iNum == iVal then bExcluded = true; break; end end until not bExcluded; return iNum; end NOT TESTED but should work.
  3. What do you mean? A collision mesh is a single mesh. It can be "Editable poly" or "Editable mesh". It doesn't matter what shapes this model has or if it's 1 mesh or a few. Make sure your scale is correct before you export collision mesh. Maybe your mesh is too big or too small and you may see no difference in game.
  4. 50p

    Problem :(

    Why don't you use isObjectInACLGroup? You don't have to make a new function to find out if player is in the ACL group.
  5. Collision, model and texture replacement should work with all models with that specific ID no matter whether it's object created with MTA or GTA world model.
  6. 50p

    GUI Problems

    https://wiki.multitheftauto.com/wiki/Client_side_scripts
  7. 50p

    GUI Problems

    Yes. You can't use client-side functions in server-side scripts.
  8. Exactly... And that's what setMapName is for.
  9. 50p

    random text

    actually i did it but it works just once the timer. "once the timer" what? You made your life so complicated... You have so many different variables from setTimer's... What's the point if you need only 1 timer at a time? Line 3: Why do you still have that timer set to repeat over and over again if you kill it later in the script? Line 3: Why do you assign new value to start if you have function with the same name? It overrides your function which disables your script after first call. Line 16: What's the point for _, _, in the parameters list if you don't attach this function to a command like I did before? BTW, 5 mins is not 500000ms... calculate it again and think over your script again. You made your life much harder.
  10. 50p

    Chatbubbles

    That may be a problem with the resource being outdated. Check debug window ("debugscript 3" command) and see if you get any warning or error messages if so, then you'd have to contact the resource author and let him know about this bug so he can fix it.
  11. 50p

    Chatbubbles

    Either in meta.xml or AFAIR in admin panel, double-click the chatbobble resource and you should see some settings.
  12. 50p

    random text

    Why don't you test?
  13. 50p

    AFK Script

    You need to understand what elements and element tree are in MTA. When you setPlayerTeam, you need player element (which you already have) and team element (which you don't have unless Spectator is an element). Use getTeamFromName to get team by its name. setPlayerTeam( thePlayer, getTeamFromName( "Spectator" ) ); -- make sure "Spectator" is correct team name
  14. 50p

    random text

    Because your setTimer is set to repeat itself over and over again until you stop it (killTimer).
  15. http://www.dafont.com/theme.php?cat=302 You script it the same way as custom weapon icons.
  16. 50p

    random text

    But this is not all.
  17. I hate long codes and I only checked your first 4 getAccountData lines which are wrong and you should get a warning message which you didn't say about... So, I guess you don't use debug window. Use "debugscript 3" command.
  18. 50p

    random text

    what i did its added the resource to acl group admins... Why resource if it's player who is using this command? Check ACL again and see how other commands are blocked in "Default" and unblocked in "Admin".
  19. JasseUnit, you can't do an if statement like this because 285 is a number and will pass as true. You have to check if skin is 285 again. if ( skin == 115 ) or ( skin == 285 ) then
  20. 50p

    random text

    Do you think I'd put a comment on that line without any reason?
  21. No, also, it can compile only 1 script at a time (the active one). In the future I want to "compile" all client-side and/or server-side scripts (there should be an option) and zip them so you can upload a .zip straight to your server.
  22. https://wiki.multitheftauto.com/wiki/Main_Page
  23. Of course you need a script.. freeroam has scripts. How else would you expect it to work? I'm sorry but it's very hard to understand you. I'd like to help you but I don't know how...
  24. You have to script it yourself. Are you willing to try and learn to script?
  25. AFAIK, there is no "window compiler". You need to use the console or MTA:SE which compiles your script to find errors (the compiled script is located in your "C:\Documents and Settings\\Local Settings\Temp" folder under temp.luac name).
×
×
  • Create New...