Jump to content

Prieto_Galletini

Members
  • Posts

    50
  • Joined

  • Last visited

Everything posted by Prieto_Galletini

  1. i forgot to metion the problem i have us in the getElementPostion it says badargument.
  2. So i have i little problem with this trying to play a sound when the car starts and im using playSound3D so nott everyone on the server hears the sound only the close by players. Server side function car ( playerInCar ) vehicle = getPedOccupiedVehicle ( playerInCar ) seat = getPedOccupiedVehicleSeat ( playerInCar ) eState = getVehicleEngineState ( vehicle ) --local a,b,c = getElementPosition ( vehicle ) if ( vehicle ) then if ( seat == 0 ) then if ( eState == true ) then setVehicleEngineState ( vehicle, false ) else setTimer ( setVehicleEngineState, 2000, 1, vehicle, true ) --posi = getElementPosition ( vehicle ) triggerClientEvent ( playerInCar, "onCarStart", playerInCar ) end end end end addCommandHandler ( "motor", car ) Client Side function carSound ( ) local x, y, z = getElementPosition ( playerInCar ) playSound3D ( "files/sounds/engine.wav", x, y, z ) end addEvent ( "onCarStart", true ) addEventHandler ( "onCarStart", getRootElement(), carSound )
  3. why dont you take a look at the wiki first then try to make a script and if it does not work then come here to ask for help or on mirc, thats what we do or at least me haha
  4. there is like thousands of treads like this no one is going to do it just learn lua its not that hard.
  5. new question : https://forum.multitheftauto.com/viewtop ... =a#p293076
  6. thanks I'm learning little by little.
  7. thanks for your help. new question ppl haha i know i ask a lot but i have to learn on way or another, https://forum.multitheftauto.com/viewtop ... at#p293076 question number 6
  8. and is there a way that i compile the scripts with lua edit 5.1 and mta reads it cause i tried that way too and nothing, and i want it like compile client sides with lua edit, then change meta.xml myself i tried but not working
  9. ERROR; exception in resource C:\pathtoresource\resource\ (The system cannot find the file specified) i put this C:\pathtoresource\resource\ instead of the normal path just for the example here.
  10. new question https://forum.multitheftauto.com/viewtop ... 76#p293076 someone????
  11. ok to make more easy cause i saw the wiki examples and it was not what i needed but i really apreciate the help, so here's my code function PlayerDied ( ) local x = 2034.3935546875 local y = -1402.564453125 local z = 17.296909332275 local r = 202.57781982422 setTimer ( spawnPlayer, 60000, 1, source, x, y, z, r ) --spawn player after 1 minute in the hospital -- i want the code below just to show to the guy who died and in some color outputChatBox ( "Has sido gravemente herido si en 10 minutos no se presenta un medico" ) outputChatBox ( "seras trasladado automaticamente al hospital" ) end addEventHandler ( "onPlayerWasted", getRootElement( ), PlayerDied )
  12. ok for those guys saying that this does not work on vista is a problem on your machine im usng vista and never had problem with the editor even before this guide was made, so if this guide does not help you please make sure your pc is up to date and if your pc give any error that you dont know what that error is just goggle it please.
  13. ok i need some help look first post here https://forum.multitheftauto.com/viewtop ... 76#p293076
  14. i know that but if hes planning on making his own server then its not a ban haha
  15. i think he means the files inside he's game not directly trough MTA
  16. one thing only open the map editro and follow the tutorial. it shows what you need.
  17. first for free i think he means in his own computer, and to make a server its not just a program.
  18. im new so im not really sure, but you can make your own interiors.
  19. check this example http://development.mtasa.com/index.php? ... ple_script
  20. why dont u test it? and see for your self
  21. OK so I'm tired pf making new topics every time i need to know something so its better if i keep it to one topic alone that way i can use it of reference too. 1. Q. is there a way to compile client side scripts? like if someone opens the file they don't see the code? A. https://forum.multitheftauto.com/viewtop ... 76#p293078 2. Q. how can i color the text that comes on the chat and how can i make it that something just shows for only one person and not everyone connected. A. https://forum.multitheftauto.com/viewtop ... at#p293271 3. why mta does not recognize lua edit 5.1 compiled files. 4. how can i add txd like for paint jobs on a car not change, like the banshee it does not have Paint jobs but you can add them via the gta3.img but is it possible to add paint jobs in mta like new txd not replacing. 5. Q. how does external downloading works, and wich files do i need to put on the external server does it have to be the whole server or just some files. A. https://forum.multitheftauto.com/viewtop ... at#p293354 6. Q. How can i make that people MUST register on the server before playing on the server, don't tell me the whole code just point me in the right direction, that's all i need A. https://forum.multitheftauto.com/viewtop ... at#p293361 7. Q.Does someone knows the id for the emmet ped cause i looked trough the wiki and couldn't find it, and looked trough the admin resource and nothing, so if someone knows this please let me know, thanks in advance. A. https://forum.multitheftauto.com/viewtop ... 15#p293639 8. Q. is really a problem not a question https://forum.multitheftauto.com/viewtop ... 33#p294133 9. Q. how can i make the time in the game represent the time in the server and how can i specify some function to work at a desired time.
  22. ok one question does the script i mean the client side script does it need some coding inside to work cause im getting a error and it only says failed to get file blahbla/resource so does it need to have certain code inside it??
×
×
  • Create New...