Jump to content

IIYAMA

Moderators
  • Posts

    6,073
  • Joined

  • Last visited

  • Days Won

    210

IIYAMA last won the day on February 17

IIYAMA had the most liked content!

About IIYAMA

  • Birthday 01/01/2016

Member Title

  • Global Moderator

Details

  • Gang
    [HB]
  • Location
    Netherlands
  • Occupation
    I have never been to the streets of SA... so who knows?
  • Interests
    Design, scripting, UX/UI

Recent Profile Visitors

46,776 profile views

IIYAMA's Achievements

Gangsta

Gangsta (45/54)

1.5k

Reputation

  1. Are you sure your API is capable of accepting JSON? fetchRemote(url, { method = "POST", formFields = { adminName = "", action = "", mapName = "" }, }, function(responseData, responseInfo) If JSON is expected, see also this comment on the wiki page: postData = string.sub(postData, 2, -2)
  2. There is also this useful function: https://wiki.multitheftauto.com/wiki/GetScreenStartPositionFromBox
  3. IIYAMA

    Goodbye MTA

    Thank you for your support to the community, it was an honor to have met you and I hope we meet again one day. I wish you the best of luck!
  4. Are you using this function? https://wiki.multitheftauto.com/wiki/CreateProjectile Attach a dummy vehicle to the object and set the vehicle as the creator of the projectile. Because else your camera is used for the direction.
  5. See: https://wiki.multitheftauto.com/wiki/FindRotation3D
  6. By showing the cursor: https://wiki.multitheftauto.com/wiki/ShowCursor Though setCameraMatrix might also be possible, but you will have to reset the camera.
  7. As Justn and me mentioned: Move this line to the top of your code: Like this: local sx,sy = guiGetScreenSize() local px,py = 1600,900 local x,y = (sx/px), (sy/py) local Inventory = dxCreateTexture("Inventory.png") -- just put it here and not inside of HUDDrawing. function HUDDrawing() --[[ ... ]]
  8. The following functions shouldn't cause crashes: https://wiki.multitheftauto.com/wiki/DxDrawRectangle https://wiki.multitheftauto.com/wiki/DxDrawText But you most likely did crash because of a memory leak. To find the reason I will need to look at your code for that. Just a thing that can lead up to a crash: By putting dxCreateFont/dxCreateTexture/dxCreateScreenSource(everything with Create in it's name) inside of an onClientRender triggered function
  9. setGlitchEnabled("quickreload", true) https://wiki.multitheftauto.com/wiki/SetGlitchEnabled You could the enable the quickreload glitch. For testing: /start runcode /srun setGlitchEnabled("quickreload", true)
  10. I wouldn't run that function either in combination with onClientRender. Since you are fetching the file from another resource, you could increase or decrease the download priority for either resource. https://wiki.multitheftauto.com/wiki/Meta.xml Or just wait a little bit longer before start rendering. (I also recommend to convert the image into a texture before rendering)
  11. Can't you better change the password? https://wiki.multitheftauto.com/wiki/Server_Commands#chgpass chgpass <accountname> <password> (using the console) Else: https://wiki.multitheftauto.com/wiki/Server_Commands#delaccount delaccount <accountname> (using the console)
  12. IIYAMA

    VC in MTA

    You could check out these files/resources: https://github.com/gta191977649/MTA-VCS/tree/main/mods/deathmatch/resources/[vcs] Download able at root: https://github.com/gta191977649/MTA-VCS/tree/main Though you have to verify yourself if this is a good source or not. I only Googled it for you.
  13. The Console has full access, so it might be possible that you currently have no access to begin with. Steps to add the initial admin account (later on you can add more admins ingame using the User Interface): Stop the server Open the ACL file: MTA San Andreas 1.6\server\mods\deathmatch\acl.xml Make a back up of this ACL file Scroll to (in the original one): <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.acpanel"></object> </group> Add an account looking like this: <object name="user.example"></object> Replace example with your username even if the account does not exist yet. (keep it simple) And add it like this: <group name="Admin"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="resource.admin"></object> <object name="resource.webadmin"></object> <object name="resource.acpanel"></object> <object name="user.example"></object> </group> Save the file Start the server again (if you broke the syntax of the file, the server will not start, that is why step 3 so you can start over) Go ingame Add the account if not exist: /register <example username> <new password> /login <example username> <current password>
  14. There is a difference in the panel and command access. This is for example a part of the rights for Moderators. <acl name="Moderator"> <right name="general.ModifyOtherObjects" access="false"></right> <right name="command.gamemode" access="true"></right> <right name="command.changemode" access="true"></right> <right name="command.changemap" access="true"></right> <right name="command.stopmode" access="true"></right> <right name="command.stopmap" access="true"></right> <right name="command.skipmap" access="true"></right> <right name="command.mute" access="true"></right> <right name="command.unmute" access="true"></right> <right name="command.whois" access="true"></right> <right name="command.whowas" access="true"></right> <right name="function.setPlayerMuted" access="true"></right> <right name="function.kickPlayer" access="true"></right> <right name="function.banPlayer" access="true"></right> <right name="function.getBans" access="true"></right> <right name="function.addBan" access="true"></right> <right name="function.startResource" access="true"></right> <right name="function.stopResource" access="true"></right> <right name="function.restartResource" access="true"></right> <right name="function.refreshResources" access="true"></right> <right name="function.redirectPlayer" access="true"></right> <right name="general.adminpanel" access="true"></right> <right name="general.tab_players" access="true"></right> <right name="general.tab_resources" access="false"></right> <right name="general.tab_maps" access="false"></right> <right name="general.tab_server" access="true"></right> <right name="general.tab_bans" access="false"></right> <right name="general.tab_adminchat" access="true"></right> <right name="command.mute" access="true"></right> <right name="general.tab_bans" access="false"></right> You can see that the moderator can mute a player using /mute, but does not have access to the ban tab. How did you grand yourself access rights?
×
×
  • Create New...