Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 21/03/24 in Posts

  1. @MGO_SA @Magiz0r @Reda_Iq @CarCrasher @Woffi1221 @Lt.Price @MoHaRx @Marinovv @DreaM40BG I pushed a small update to Cinema Experience (version 2.3) on March 20th, 2024. This is mostly a release to fix some long standing issues. The changes include: Fixed video playback issues with auto click through and ad skipping Improved screen resolution from 360p to 1080p Smoothed ambilight color transitions Unlocked Audio Toggle and Change View settings Added screen aspect ratio adjustment in settings Added YouTube Shorts support (.com browser only) Minor UI and texture updates Fixed hud compatibility issue Fixed some multiplayer sync issues A couple of new features added as well: onscreen video start messages, and the ability to Change View to look directly at the screen. I also cleaned up some unused settings and code. Note that if YouTube TV acts up, you can try enabling the embed video fallback by setting useEmbeds=true in shared.lua. This may cause some videos to error out though due to an embedding issue which is unfixable. You can download the updated version here. Let me know if you run into any other issues. Enjoy!
    3 points
  2. Nenhum desses exemplos vai funcionar pois faltou fechar o parênteses do addEventHandler. Adicione um ) depois do último end.
    1 point
  3. Hello everybody I'm currently working on a server and have been playing around with loads of different resources and scripts, but I've just come across one that has properly grounded all my gears completely. I downloaded this promising looking resource called "housing_system" which turned out to be a massive headache. It's great, it's simple to use, but it doesn't save any of the properties and as soon as you close "MTA Server", all your work goes. This is very annoying when you spend a night doing almost 400+ properties, just for them to all disappear. Nothing in the readme or description that may hint in any way for you to save anything yourself. Here's a link https://community.multitheftauto.com/index.php?p=resources&s=details&id=1841 Quite disappointed after loosing all that progress, and has genuinely put me off doing the server a bit as I now have to go all around LS (when I find a resource that works as described) It's been uploaded by a guy called "TheTurboCow" but apparently got permission from "JasperNL=D" to edit it and re-upload it. Any help would be much appreciated as the author hasn't linked a thread to it so you can't ask them for support. I don't know if I'm doing anything wrong or if I should be doing something else, as the uploader isn't really much help. Cheers everyone!
    1 point
  4. Hola @Shadox, Parece que el problema está en la creación del área de radar. Aquí está la corrección en el código para asegurar que el área de radar se cree correctamente y se muestre en el radar: if bUseRadarArea then for _, a in ipairs( aRadarAreaPlaces ) do local x, y, width, height, r, g, b, a = unpack( a ) pRadarArea = createRadarArea( x, y, width, height, r, g, b, a ) end end Asegúrate de que los valores de x, y, width, height y los colores r, g, b, a estén siendo definidos correctamente en la tabla aRadarAreaPlaces. Esto debería garantizar que el área de radar se cree con las dimensiones y colores correctos y se muestre en el radar según lo esperado.E Espero haber ayudado.
    1 point
  5. We have this event on client. https://wiki.multitheftauto.com/wiki/OnClientChatMessage
    1 point
  6. Volumetric street light cone with vertex alpha
    1 point
  7. 1. We create an application in https://discord.com/developers/applications 2. We copy the application id: 3. Now we are making the script (start with creating a .lua file) --// discord_c.lua local app_id = "your_app_key_here" function ConnectRPC() setDiscordApplicationID(app_id) if isDiscordRichPresenceConnected() then local name = getPlayerName(localPlayer) iprint("RPC: Discord RPC is now connected") setDiscordRichPresenceAsset("your_app_logo_string", "Yey, this is my app logo") setDiscordRichPresenceButton(1, "Join Discord", "url_here") setDiscordRichPresenceButton(2, "Connect Server", "url_here") --// NOTE: you can show only 2 buttons setDiscordRichPresenceState("Playing") setDiscordRichPresenceDetails("Playing as: "..name) else iprint("RPC: Discord RPC failed to connect") end end addEventHandler("onClientResourceStart", resourceRoot, ConnectRPC) --// Now, we reset the rpc details so the status will not be bugged addEventHandler("onClientResourceStop", resourceRoot, function() resetDiscordRichPresenceData() end) 4. So, we have our discord_c.lua file and now we need to create the meta.xml <meta> <info author="YourName" description="YourResourceDescription" type="YourScriptType", version="1.0" /> <script src="discord_c.lua" type="client" cache="false" /> </meta> 5. In the console you can now type refresh and after start theResourceName
    1 point
  8. Nice guide! You can upload images to your application on the Discord Developers Platform; these are called "assets" and have a name. You can use these asset names in the first argument of setDiscordRichPresenceAsset. For example: -- will display my server's logo asset image -- with the server name text when mouse hovered over the image setDiscordRichPresenceAsset("my_logo", "Server Name")
    1 point
  9. There is another solution that doesn't require render targets, and it's closer to dxDrawImageSection in the way it works: dxDrawMaterialPrimitive. dxDrawImageSection only operates on rectangular sections. dxDrawMaterialPrimitive allows you to draw triangles, specifying the texture coordinates for each vertex, and since triangles can be put together to form other shapes, you can do what dxDrawImageSection does but not limited to rectangular sections. There isn't an example in the wiki page on how to use it, but dxDrawPrimitive has one, and dxDrawMaterialPrimitive works in a similar way, only it takes image as second argument, and each vertex has 5 parameters instead of 3 (2 extra parameters are for image coordinates). I came up with some function, for drawing a radially cut out section of an image. I only tested it as much as I could test it in standalone Lua interpreter so I don't know if it works in MTA, but if it does, someone may put it on useful functions page in wiki ? It uses trianglefan primitive type, puts the first vertex in the center and other vertices around it. local white = tocolor(255, 255, 255, 255) local degToRad = math.pi/180 local function makeVertexAtAngle(centerX, centerY, halfWidth, halfHeight, angle, color) local angleRad = angle*degToRad local xAdd, yAdd = math.sin(angleRad), -math.cos(angleRad) local maxAdd = math.max(math.abs(xAdd), math.abs(yAdd)) xAdd, yAdd = xAdd/maxAdd, yAdd/maxAdd return { centerX+xAdd*halfWidth, centerY+yAdd*halfHeight, color, 0.5+xAdd*0.5, 0.5+yAdd*0.5 } end function dxDrawRadialImageSection(posX, posY, width, height, image, startAngle, stopAngle, color, postGUI) if color == nil then color = white end if postGUI == nil then postGUI = false end local halfWidth, halfHeight = width*0.5, height*0.5 local centerX, centerY = posX+halfWidth, posY+halfHeight local roundedStartAngle = math.floor((startAngle-45)/90+1)*90+45 local roundedStopAngle = math.ceil((stopAngle-45)/90-1)*90+45 local vertices = {{centerX, centerY, color, 0.5, 0.5}} table.insert(vertices, makeVertexAtAngle(centerX, centerY, halfWidth, halfHeight, startAngle, color)) for angle = roundedStartAngle, roundedStopAngle, 90 do table.insert(vertices, makeVertexAtAngle(centerX, centerY, halfWidth, halfHeight, angle, color)) end table.insert(vertices, makeVertexAtAngle(centerX, centerY, halfWidth, halfHeight, stopAngle, color)) dxDrawMaterialPrimitive("trianglefan", image, postGUI, unpack(vertices)) end This example should display a looping 5-second animation of image going from 0 to 360 (if I didn't screw anything up): function drawAnimatedRadialSection() local angle = (getTickCount() % 5000) / 5000 * 360 dxDrawRadialImageSection(100, 100, 200, 200, "your_image.png", 0, angle) end addEventHandler("onClientRender", root, drawAnimatedRadialSection)
    1 point
  10. Long time this dont get update. Is any way to make this possible without using relay node.js server (externar things) because people buy the server and dont have acess to install that things.
    1 point
  11. here put my token? "token": "bot.token" > bot.token?
    1 point
  12. It won't look as cool as this decision.
    1 point
  13. How am I supposed to know the bullet speed,location, etc. Also how can I apply the fx as a shader to the bullet(first time i mess with shaders)
    1 point
×
×
  • Create New...