Jump to content

MisterQuestions

Members
  • Posts

    460
  • Joined

  • Last visited

Everything posted by MisterQuestions

  1. Seria buena idea aprender a hacer tu carga de mapas personalizada, con el uso de XML's.
  2. Tengo entendido, sería así.
  3. Seems like musicmp3.ru changed their protocol from http > https. "https://musicmp3.ru/search.html?text="..txt.."&all=songs" <- I updated to this link .
  4. Map weather is not added into map creation, you should get it from map resource and in the client-side map creation set the weather. (Check mapmanager).
  5. Well everything its done and at other maps works really fine... but in some maps theres a strange isse, and i don't know why happens this. loadstring outputs the following line: '[string ""]:1: '=' expected near 'ۧ' so.. there's no code, and following, no script file to load. Why does this happens? Edit: Something curious... if i copy all script content and move it to another file it works...
  6. Well... Idk, i just named the function like that . He can simply change function name and thats it.
  7. well 1st. Marker will be inserted into a table with index "source", maybe triggered from an event. 2nd. marker its the variable for that marker.
  8. I tried that way.. but when player move camera.. image is moved.. i want to draw the image at the surface where player vehicle's on.
  9. Hello everybody! I want to ask if its possible to draw an image at a surface obtained by processLineOfSight. And what function(s) i should use?
  10. True.. Forgot save original function. local _spawnPlayer = spawnplayer function spawnPlayer(thePlayer) local spawns = { { 816.59997558594, -7209.2998046875, 32.799999237061 }, { 707.20001220703, -7272.6000976563, 32.700000762939 }, { 710.5, -7412.8999023438, 32.799999237061 }, { 798.70001220703, -7654, 32.5 }, { 816.09997558594, -7471.3999023438, 30 }, { 812.40002441406, -7321.6000976563, 32.799999237061 }, } local lucky = math.random ( #spawns ) _spawnPlayer(thePlayer,spawns[lucky][1],spawns[lucky][2],spawns[lucky][3]) return true end
  11. Overwrite spawn function or just change name to this... function spawnPlayer(thePlayer) local spawns = { { 816.59997558594, -7209.2998046875, 32.799999237061 }, { 707.20001220703, -7272.6000976563, 32.700000762939 }, { 710.5, -7412.8999023438, 32.799999237061 }, { 798.70001220703, -7654, 32.5 }, { 816.09997558594, -7471.3999023438, 30 }, { 812.40002441406, -7321.6000976563, 32.799999237061 }, } local lucky = math.random ( #spawns ) spawnPlayer(thePlayer,spawns[lucky][1],spawns[lucky][2],spawns[lucky][3]) return true end
  12. We are here to help, not to do you work. If we do it by yourself you will not learn.
  13. Lel, the test funct from getResourceScripts works perfectly for compiling Just modify the funct. Add xmlUnloadFile for meta xmlFile (or will keep opening files and stay loaded at memory).
  14. https://wiki.multitheftauto.com/wiki/GetResourceScripts
  15. getLocalPlayer() -> getRootElement() or root for everyone... check the weapon id, the miniguns id its: 38
  16. Use requestBrowserDomains.. All others are blocked.
  17. MisterQuestions

    question

    Why not try with getKeyState? Check state of both keys.
  18. Thanks to everybody! I will be testing on this
  19. Wow really awesome awnser and thanks, can you give me an example with it too please?
  20. Do not remove codes or attachments.. Maybe will be usefull later for other people.
  21. This couldn't help for getting the direction for the ball, what i need is when the player hits the ball, move it with the direction too, with my current function i just move ball but doesn't set the ball to a direction.. (i mean the direction is setted depending on how the player hitted with the car).
  22. Hey everybody i was trying to make some carball thing... but i don't really know how to make when player hits the ball give the correct direction.. Any idea? Here is what i have... Server-Side (At client side i just send current vehicle speed). function onClientInteractedWithBall(hittedBall,x,y,z) if isElement(hittedBall) then setElementVelocity(hittedBall,x*2,y*2,z*2 + 0.2) end end addEvent("ball:onServerSync",true) addEventHandler("ball:onServerSync",root,onClientInteractedWithBall)
  23. Estarías poniendo el evento solo para el jugador local, me parece que no funcionaría así. Sólo funcionaria si clickeas en "localPlayer".
×
×
  • Create New...