-
Posts
460 -
Joined
-
Last visited
Everything posted by MisterQuestions
-
Seria buena idea aprender a hacer tu carga de mapas personalizada, con el uso de XML's.
-
Tengo entendido, sería así.
-
[REL] MTA Music Panel ( musicmp3.ru ) FULL SOURCE CODE
MisterQuestions replied to dk99's topic in Resources
Seems like musicmp3.ru changed their protocol from http > https. "https://musicmp3.ru/search.html?text="..txt.."&all=songs" <- I updated to this link . -
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).
-
Issues with script load... (loadstring error)
MisterQuestions replied to MisterQuestions's topic in Scripting
Well, thanks It works! -
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...
-
Well... Idk, i just named the function like that . He can simply change function name and thats it.
-
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.
-
dxDraw image at surface from processLineOfSight
MisterQuestions replied to MisterQuestions's topic in Scripting
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. -
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?
-
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
-
Map queue wasn't managed by userpanel?
-
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
-
We are here to help, not to do you work. If we do it by yourself you will not learn.
-
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).
-
https://wiki.multitheftauto.com/wiki/GetResourceScripts
-
getLocalPlayer() -> getRootElement() or root for everyone... check the weapon id, the miniguns id its: 38
-
Use requestBrowserDomains.. All others are blocked.
-
Why not try with getKeyState? Check state of both keys.
-
Thanks to everybody! I will be testing on this
-
Wow really awesome awnser and thanks, can you give me an example with it too please?
-
SetCameraMatrix not destroy on map starting[Solved]
MisterQuestions replied to freudo's topic in Scripting
Do not remove codes or attachments.. Maybe will be usefull later for other people. -
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).
-
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)
-
Estarías poniendo el evento solo para el jugador local, me parece que no funcionaría así. Sólo funcionaria si clickeas en "localPlayer".