Jump to content

Malicious Hero.

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by Malicious Hero.

  1. With 1.3.2 out, Multi Theft Auto introduced the ability to set a client's cursor's alpha. As a server owner, this can be useful when you are trying to distinguish an important feature with by blinking your mouse, or anything else. In this case, I managed to create a basic system that allows a server owner to import any cursor image they have and allow players to play Multi Theft Auto with custom mouse pointers. Although this can be down prior to the update by editing the GUI settings, this can be useful for owners who wish a player to play under a certain mouse pointer. Ability for a client to pick out custom cursors Doesn't require the client to mod his MTA images to use a custom cursor Auto-save feature Ability to choose amongst infinite amount of cursors (Added by importer) I've included 3 cursors for an example of how to add your own cursor. An example of a custom cursor An example of a player previewing a custom cursor Download can be found at the MTA-SA community resource site - https://community.multitheftauto.com/index.php?p= ... ls&id=7469 I apologize to users who were expecting more consistent releases with me like I did nearly a year ago. If you haven't seen my other work, check out: HeroInventory - https://forum.multitheftauto.com/viewtop ... 08&t=52786 HeroBook - viewtopic.php?f=108&t=53102
  2. I've tested that before I even released it. Worked perfectly fine. The others who I also tested it with didn't notice it either.
  3. Weird. First time I've heard of this happening. It could be another resource inflicting with the inventory system.
  4. Do any errors show when you attempt to restart the resource?
  5. Can you send me your item database, and list exactly what you're doing that causes this problem?
  6. The video above is a trailer for a series I'm working on based off of Soul Calibur II gameplay. I'm currently still building a better story for this series, which is why I'm planning on releasing another trailer soon. Any suggestions, or comments for this upcoming series? Whether you're a Legend of Zelda fan or not, would you find a series like this interesting?
  7. Make sure you add the image from the group to meta.xml. If you have done so, please post the portion of the code related to what you're trying to accomplish from meta.xml, and from where you used the group functions. Also consider to recheck the directory of the image that corresponds to the group.
  8. You haven't created any groups. https://wiki.multitheftauto.com/wiki/Her ... _Functions
  9. Where are you triggering the event "onPlayerWinDD" or calling the function explosionsON? There could be a possibility that the player parameter is invalid. Also, when you called setTimer, you're not passing the player parameter which could contribute to the reason why this function isn't working. I posted a code below that I need you to run. If a message appears in your chatbox, the player parameter isn't valid. I've also fixed the setTimer problem you've would of faced. function explosionsON(player) if not isElement( player ) then return outputChatBox( "explosionsON: Invalid player" ) end local pX, pY, pZ = getElementPosition(player) createExplosion(pX, pY, pZ, 1, player) boom = setTimer(explosionsON, 1000, 1, player) end PS: Don't listen to X~|Mr.ALM's posts. The code he posted is absolutely wrong.
  10. Thanks for being patient. - Fixed inventory browsing bug. - Fixed limited inventory bug. - Fixed inventory grouping bug where items weren't sorted properly. - Fixed issue where items weren't loading. - Fixed issue where inventory items simply showed a black box. - Fixed issue where groups didn't show up randomly. - Added the ability to drag items to the world. - Added the ability to pick up items. - Moved all event related scripts into the "events" folder. - Added the ability to customize dropped item object IDs, and their coordinates because of object dimensions. With that being said, an item system has been added to the inventory system. The fixed version is available at the community resource center. If you encounter further bugs, please post here. Please don't PM me about bug encounters, or help setting this up, simply post here. Thanks!
  11. I found a problem within the script itself. In the new version that is coming out soon, this error will be patched. Thanks for your help!
  12. Can you show me the code where you created the inventory groups?
  13. The inventory group names you've linked to the items are called: "1", "2", "3", "4", and "5"? If that's the case, all your items should be separated into five separate groups?
  14. Sounds like either a script error, or a problem you've made in g_items.lua. Can you post your g_items.lua here?
  15. You have to set the color coded parameter to true. Read the wiki page on outputChatBox for more information: https://wiki.multitheftauto.com/wiki/OutputChatBox
  16. You can't add players to an inventory group. Also, please post here: viewtopic.php?f=108&t=52786
  17. There are examples featured already in s_resource.lua located in the server folder.
  18. The client using the reader can now use the left and right arrow keys to browse through pages. The updated version is available at the community website.
  19. Try this. --[[ Author: RoG Scripting Team Name: RoG Jail System File: server.lua type: server Copywrite (c) Revolution of Gaming ]] function jail(p1,_,p2,...) local text = table.concat({...}, " ") local nick=getPlayerName(p1) local nick2=getPlayerFromName(p2) local data=getElementData(p1,"Job") -- if (data=="Staff") then if (p2) and (...) then local veh = getPedOccupiedVehicle( p2 ) if veh ~= false then destroyElement( veh ) end setElementPosition(nick2,264.1982421875, 77.5634765625, 1001.0390625) setElementInterior(nick2,6) triggerClientEvent(getRootElement(),"message:addMessage",getRootElement(),getPlayerName(nick2) .." Has Been Jailed By Admin ".. nick .." For: ".. text, 255, 0, 0) destroyElement(vehicle) else triggerClientEvent(p1,"message:addMessage",p1,"Usage: /jail [name] [reason]", 255, 0, 0) end end end addCommandHandler("jail",jail)
  20. https://community.multitheftauto.com/ind ... ls&id=6344 DONE
  21. Description It's hell of a lot of work to build tons of GUIs for police manuals or other books on servers. HeroBook is a system that allows ANY user to create a book or a novel rather. The server controls who is able to write a book through exported functions, and the server controls who is able to read what book. Check out HeroInventory, you will be able to integrate this book system into HeroInventory for smoother usage. Features Ability to easy create infinite amount of pages. Anybody who is given permission can create a book. SQLite storage system. Fun & Simple way to read page by page (#eReaderStyle) Great way to manage Police Department or Medical books in RP servers. User-Friendly - Can be integrated very easily. HeroInventory support Images Making a new book; a horror story D: Created a book archiving several announcements on the forum Reading several pages through the announcement book. Reaching the end of the announcement book. Edited the announcement book, and reading it. Reading my horror story Functions - HeroInventory Integration - Wiki https://wiki.multitheftauto.com/wiki/HeroBook Download https://community.multitheftauto.com/ind ... ls&id=6341
  22. No. If you were to build a saving method, all you have to consider storing is the element data key "inventory_items". I simply stored all inventory items through a table. It's possible that I might create a built-in saving method, but certain servers who use this resource like things their own way. Good luck!
×
×
  • Create New...