-
Posts
6,063 -
Joined
-
Last visited
-
Days Won
208
Everything posted by IIYAMA
-
On which element did you set "VIP" > "silver" ? And this ~= means NOT EQUAL TO
-
no, not directly. But you can use: "onClientRender" + https://wiki.multitheftauto.com/wiki/Is ... inColShape + getElementPosition + if Z < 300 then (+ getTickCount() if you want to use less cpu and memory) Reset player? If you save the last position every execution of the code and the player is inside the collision, you can reset the player back to that position. Drawing? Drawing a line 2D on your radar, I don't know. But you can study the tactic's script for that.
-
That can be simply fixed by giving the opposite direction.
-
No it doesn't. You have to check if the vehicle does exist. Line 4 misplaced, must be de defined before the loop. Line 8 and 9 misplaced and not used.
-
use the first example of: getElementMatrix in order to take also the pitch in account. Can also be used to find the vector direction forwards of the vehicle, which you can add as velocity multiplier for your projectiles.
-
Ah, now I understand your struggle. My bad.
-
If you already tested everything, then you would know that directly after execution of the function triggerLatentServerEvent, there is at least one handle from getLatentEventHandles().
-
What is the bandwidth limit? How large is the transfer? And do you have ping in your test server? And how is your code structure... Test code, you can use. addEventHandler("onClientRender",root, function () dxDrawText(#getLatentEventHandles(),300,300) end)
-
if grenadesConfig[weapon] then outputChatBox("yes") else outputChatBox("no") end
-
https://wiki.multitheftauto.com/wiki/Ga ... sing_Order As scripter you don't want to execute too much DX functions, before rendering the actually game.
-
if not (hitElement) or (getElementType(hitElement)~="player") then -- Didn't attack someone if hitElement and getElementType(hitElement) ~= "player" then -- Didn't attack someone
-
I am using a script that draws bullet holes at positions where you shoot.The limit of the amount of image is 100, but also depends if they are executed within 2 ms. If it takes longer than 2 ms, the images after that amount of time will not be rendered. (images are compressed with dxt5 and saved with a very small png-8 file) My pc renders all 100, so no problem at all. I think your problem lays with the shaders or well 1.5 seems to have some changes in processing them.
-
png-8 will give much better result when the image is build up with 1 colour. png-8 has more limits, but for icons like this it is perfect.
-
No, that is where Google comes in.. Just Google those names and download the softwares. Anyway this is a scripting section and not 'how to split your col and txd files'.
-
For loading from the MySQL, split up the data under more keys. For the processing serverside: setTimer + repeat until + getTickCount() For the processing clientside: "onClientRender" + repeat until + getTickCount() For the network: https://wiki.multitheftauto.com/wiki/Tr ... lientEvent And use your own creativity.
-
Use the software col editor to splits the colfile and txd editor to splits also that file.
-
The function getPedTask gives more accurate results in what the player is doing and will be more 'efficiënt'... https://wiki.multitheftauto.com/wiki/GetPedTask
-
Or https://wiki.multitheftauto.com/wiki/ProcessLineOfSight
-
They are using https://wiki.multitheftauto.com/wiki/Tr ... lientEvent for that. They read the files and transfer them as a string. But this is not the same as streaming, this is just transfering it a different way and not faster if you ask me. The mods are available when they are downloaded, there is no way around that.
-
Replace models in your gamemode when needed. https://wiki.multitheftauto.com/wiki/DownloadFile Just make a table which keeps all resource names that have mods, audio and other things. And load what needs to be loaded. Mods can't be streamed, that is obvious.
-
Playing music requires client functions. https://wiki.multitheftauto.com/wiki/PlaySound But that doesn't mean you have to execute that function on the script of the map. You can also execute that function on your gamemode.(as long it has access to the file or url) If you don't want clients to download music, you can stream them from an URL. Required Arguments soundPath: the filepath or URL of the sound file you want to play. (Sound specified by filepath has to be predefined in the meta.xml file with tag.) I have never streamed music from an url, so you have to figure that out for yourself.
-
Serverside scripts right? You can use loadstring, but I recommend you to splits the scripts from the maps. Otherwise you probably have to edit the scripts. Because the event "onResourceStart" doesn't get triggered when you start a script with loadstring. Just start them with: https://wiki.multitheftauto.com/wiki/StartResource And add in the meta of the maps: <include resource="theResourceName" /> Which also gives you the benefit that you can also load client files easy. Or you use my map loader for that: https://community.multitheftauto.com/in ... s&id=12068 Documentation: https://forum.multitheftauto.com/viewtopic.php?f=108&t=92549