Jump to content

ViRuZGamiing

Members
  • Posts

    1,050
  • Joined

  • Last visited

4 Followers

About ViRuZGamiing

  • Birthday 25/12/1997

Details

  • Gang
    127.0.0.1
  • Location
    Ghent
  • Occupation
    Full Stack Developer
  • Interests
    JS, C#, LUA, HTML & CSS, Gaming

Recent Profile Visitors

2,570 profile views

ViRuZGamiing's Achievements

Hard-@ss

Hard-@ss (35/54)

38

Reputation

  1. All info on getAccounts is on the wiki: https://wiki.multitheftauto.com/wiki/GetAccounts calling this function on the serverside will return a table, a table can be looped over for example by using a for loop. So every loop you can use the account to pass in the required arguments for isObjectInACLGroup (https://wiki.multitheftauto.com/wiki/IsObjectInACLGroup). isObjectInACLGroup needs an object and a group as you can see in the example. The object is string formatted as user.username so "user."..getAccountName(account) The group which you get returned from aclGetGroup ( "groupname" )
  2. Appears it's still addicting to write resources for MTA:SA after all that time haha, new update ? Changelog 4.1 • Added new UI elements (requires simple-notifications resource) • Minimum client version of 1.5.6-9.14370 • Forum post is also reworked and new YouTube video has been added
  3. Hi guys I was in need of some notifications in my car-dealership script, so I decided to split up the functionality and share this resource as well. These notifications aren't very special but can be very useful for displaying errors or information, they stack underneath each other and can be removed manually or automatically. Visual Example List of Functions (client) add: adds a notification with given parameters exports["simple-notifications"]:add("Hello world!", 7000, 220, tocolor(255, 255, 255), tocolor(0, 155, 0, 155)); add(text[, delay, fade, textColor, bgColor]) text: text to display (string) delay (optional): time to stay active in milliseconds (number) default: 7000 fade (optional): time for the fade out animation in milliseconds (number) default: 220 textColor (optional): color of the text (tocolor) default: tocolor(255, 255, 255) bgColor (optional): background color of the text (tocolor) default: tocolor(0, 0, 0, 155) return index (number) shift: removes the first notification exports["simple-notifications"]:shift(); pop: removes the last notification exports["simple-notifications"]:pop(); remove: removes a notification by index remove(idx[, instant]) idx: the index returned from the add function (number) instant: remove the notification without fade (boolean) default: false List of Functions (server) All client side functions are shared, but they take an extra first argument playerSource, example: exports["simple-notifications"]:add(source, "Hello world!", 7000, 220, tocolor(255, 255, 255), tocolor(0, 155, 0, 155)); Download https://community.multitheftauto.com/index.php?p=resources&s=details&id=18339 Leave any questions or feedback below and I'll see if I add it. Viruz out!
  4. Hi guys After 6 years I've decided to rewrite my script and improve on it as well ? Changelog • removed GUI Control Panel • removed dxDraw messages • Dynamic XML File to add as many car dealerships as you want • A lot of bug fixes and code optimizations (I was ashamed of looking my code) Roadmap (if I get to it) • Add new UI (GUI/dxDraw) elements • Add a new control panel Example of the XML File
  5. based on the first error, read this example: https://stackoverflow.com/a/42890331
  6. Gordon is right this, also this still leaves a 1s (maximum) gap of you having a wanted level inside the turf. What I would suggest is that you: 1. Go to the 'setWantedLevel' function 2. Add an if around it checking if the player is NOT in the turf.
  7. Visual Studio Code has some and it's a pretty nifty IDE imo
  8. He never said he wanted it done by scripting, he probably thought it was some kind of scripting function not knowing its as easy as replacing a local file. But yeah he has his options, replace for single use or script a new one for server use.
  9. you can replace it In MTA:SA installation folder => MTA/cgui/images just replace radar.jpg.
  10. There's no image showing but I suggest dropping your image in Paint and using the color picker
  11. I basically told you what to do in text. Just try it, if you encounter a problem I'll gladly help.
  12. Just create a variable that represents the timer in seconds (since thats the smallest time you'd want to show) so if you'd want a timer of 10 min you'd have: timer = 600 You'd draw that timer variable as a dxtext on render and decrement the timer by 1. You'd want to convert the 600s to min and seconds tho but thats just some simple math.
  13. dxDrawText on onClientRender
  14. Please give me a Ferrari and a big mansion. 1. We're not going to make you thing for free 2. Wrong forum if you are looking for a (paid) scripter
  15. define 'shops' cause there are no default shops
×
×
  • Create New...