ChaosMTA

Members
  • Content count

    55
  • Joined

  • Last visited

  • Days Won

    1

ChaosMTA last won the day on November 25 2016

ChaosMTA had the most liked content!

Community Reputation

10 Decent

About ChaosMTA

  • Rank
    Snitch

Details

  • Gang
    OwlGaming Community
  1. Does anyone know if its possible to play cutscene audio using playSFX? Specifically looking for big smokes order in the Drive Thru mission but I can only find dialogue passed before and after the cutscene, nothing in it.
  2. Weird, can't edit my post anymore though I'll report it to see if a forum admin can take a look. Thanks for the heads up.
  3. I recently brought MTA support to the Linux Game Server Manager script. It handles a number of things automatically for you to make your life a little easier. It's free and rather simple to setup. If you are planning on hosting your MTA server on linux, give it a shot! Main Features Server installer. Loads of default start parameters Start/Stop/Restart server. Server console. Server monitoring (including email notification). Server update (linux.mtasa.com). Server backup. Logs management. Compatibility The Linux Game Server Manager is tested to work on the following Linux distributions : Debian based distros (Ubuntu, Mint etc.). Redhat based distros (CentOS, Fedora etc.). Get the script at https://gameservermanagers.com/lgsm/mtaserver/ Also let me know if there is anything that needs changing or done as an addition. I will do my best to handle it.
  4. No, this isn't where we do scripts for you. We give you the knowledge to help you complete your own scripts. Good point Shaman
  5. I don't see you actually change the players money at all here. You can do that using: setPlayerMoney
  6. The built in HTTP server used by MTA really isn't that slow. Sounds more like your download or the servers upload is not performing properly. Running the HTTP server on the MTA server itself wouldn't cause timeouts if it was configured properly. I can't vouch for this unnamed hosting provider, but they most likely won't provide any better speeds than what you can achieve yourself depending on your hosting solution.
  7. mysql_fetch_assoc is used in a deprecated MySQL Module. https://wiki.multitheftauto.com/wiki/Modules/MTA-MySQL You can either install it(don't recommend it as I stated it is deprecated and you are already using MTADB functions in this so..) or you can use dbPoll to return your results. https://wiki.multitheftauto.com/wiki/DbPoll
  8. Just noticed your comment back there, can you share that application? I agree, would love to have this updated.
  9. I did this at Owl. The way I went about doing it is building off of the customblips resource here: http://community.multitheftauto.com/?p= ... ils&id=960 I made a modified copy to allow other things in this UI, like text, color, and alpha changes. You can do the same with what people said above and just editting that script.
  10. Not all sounds return the information you are asking for. Sound lengths won't work properly on streams as there is no end, its probably returning 0 for that reason.
  11. It's not possible to have multiple models assigned to different vehicles with the same MTA Vehicle ID.
  12. addCommandHandler playSound3D
  13. No money needed, use this: https://wiki.multitheftauto.com/wiki/CenterWindow
  14. I made this awhile ago just as a template for people to learn and play around with; local objectID = 980 --Place the object ID here local originalX,originalY,originalZ = 282.39999389648,-1319.9000244141,55.639999389648 --Place the coords of the gate here local rotationX,rotationY,rotationZ = 0,358.70007324219,34.5 --Place the rotations of the gate here local moveX,moveY,moveZ = 282.39999389648,-1319.9000244141,50 --Place the coords to move the gate to here local moveRotX,moveRotY,moveRotZ = 0,0,0 --Place the rotations for the gate here (if you do not want it to rotate, put: 0,0,0) local timeToMoveGate = 2000 --Put the time it takes to open/close the gate here (in milliseconds) local timeToStayOpen = 4000 --Put the time that the gate stays open until it closes (in milliseconds) local command = "gate" --Put the command name you want to use here local distanceFromGate = 25 --Put the minimal distance from the gate to open it here --####################################################### --#### DO NOT EDIT ANYTHING BELOW HERE #### --####################################################### local gateState = false --Leave this at false, you don't need to edit this thisGate = createObject(objectID,originalX,originalY,originalZ,rotationX,rotationY,rotationZ) --Creates the object and names it 'thisGate' exports.pool:allocateElement(thisGate) --Let's just leave this here, okay? local function resetGateState() --Function to reset the state of the gate gateState = false --Sets the gate state to closed end local function closeThisGate() --Function to close the gate moveObject(thisGate,timeToMoveGate,originalX,originalY,originalZ,0 - moveRotX,0 - moveRotY,0 - moveRotZ) --Moves the gate back to the original position setTimer(resetGateState,timeToStayOpen,timeToMoveGate) --Resets the state of the gate after the gate has moved back to it's original position end local function useGate(thePlayer, commandName) --Function that triggers the gate local posX,posY,posZ = getElementPosition(thePlayer) --Gets the position of the gate local distance = getDistanceBetweenPoints3D(originalX,originalY,originalZ,posX,posY,posZ) --Gets the distance between the player and the original position of the gate if(distance <= distanceFromGate and gateState == false then --Checks if the player is near enough and if the gate is not open/opening/closing gateState = false --Sets the gate to open/opening/closing moveObject(thisGate,timeToMoveGate,moveX,moveY,moveZ,moveRotX,moveRotY,moveRotZ) --Moves the object to the location that is wanted setTimer(closeThisGate,timeToMoveGate + timeToStayOpen,1) --Sets the times to close the gate again end end addCommandHandler(command, useGate) Hope it helps you learn a bit.
  15. Good luck, but you may wish to list your price range for people interested.