-
Posts
1,131 -
Joined
-
Last visited
-
Days Won
2
MIKI785's Achievements
Banger (36/54)
64
Reputation
-
Restive reacted to a post in a topic:
How to create full screen blur?
-
As far as I understand from reading the wiki, it creates a GUI element. This means that you are to treat it as any other GUI element, not like dx functions. Basically, there's no need to render it yourself using onClientRender -> the resource does that for you. So, what your code does is that it's creating a new GUI element on every render, that's why you're not able to destroy it. You're only storing the latest instance of that GUI element inside of the blur variable.
-
Hiding reacted to a post in a topic:
Protecting files
-
Hiding reacted to a post in a topic:
Protecting files
-
How to make a topic in this section:
-
MIKI785 reacted to a post in a topic:
[Suggestion]
-
Is it server or client? If it's on the server, there is no need to declare the files in meta.xml for it to work. However, the resource that does the loading needs access to the general.ModifyOtherObjects permission to be able to read files located in other resources.
-
MIKI785 reacted to a post in a topic:
[2019] A Year in Recap and Season Greetings
-
There is no 'local player' on the serverside. It makes no sense as who would be 'local' to the server?
- 2 replies
-
- server side
- ped
-
(and 2 more)
Tagged with:
-
No, engineLoadTXD takes either a file path or raw txd data.
-
What? You should probably read this:
-
Liejam reacted to a post in a topic:
Exact NOS and Vehiclechanger values?
-
I'm not sure about the nitro, I think it just gives you the nitro upgrade and that's it, the duration is handled by GTA itself. The vehicle change is here: https://github.com/multitheftauto/mtasa-resources/blob/master/[gamemodes]/[race]/race/race_client.Lua#L510 So it should be 1 metre.
-
ArcAngeL reacted to a post in a topic:
Remove text when players enter the vehicle
-
Simply use getPedOccupiedVehicle. ddEventHandler( "onClientRender",root, function( ) local px, py, pz, tx, ty, tz, dist px, py, pz = getCameraMatrix( ) for _, v in ipairs( getElementsByType 'player' ) do --if(player ~= localPlayer) then if not getPedOccupiedVehicle(v) then tx, ty, tz = getElementPosition( v ) dist = math.sqrt( ( px - tx ) ^ 2 + ( py - ty ) ^ 2 + ( pz - tz ) ^ 2 ) if dist < 30.0 then if isLineOfSightClear( px, py, pz, tx, ty, tz, true, false, false, true, false, false, false,localPlayer ) then local sx, sy, sz = getPedBonePosition( v, 6 ) local x,y = getScreenFromWorldPosition( sx, sy, sz +1.5 ) if x then -- getScreenFromWorldPosition returns false if the point isn't on screen dxDrawLine3D ( sx, sy, sz+0.2,sx, sy, sz+1.35, tocolor ( 0, 210,0, 90 ), 1.45,false) dxDrawText( "Warrior", x-9.5, y, x, y, tocolor(0,210,0,150), 0.85 + ( 15 - dist ) * 0.035, "default-bold" ) end end end end end end )
-
SetMarcos reacted to a post in a topic:
[HELP] force player to execute a command
-
You can find older builds here: https://nightly.multitheftauto.com/ although I don't understand why would you want an older one.
-
local scale = {(sX/1920) * (sY/1080)}/2 You're making a table here, isn't it supposed to be regular brackets here? local scale = ((sX/1920) * (sY/1080))/2
-
You can replace any texture with shaders and you are not limited by IDs here. That applies to all elements, not only vehicles. But yeah, models are limited.
