Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About Rolplay

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I don't really unrestand what should i do. Just copy those 2 php codes to a html file or what?
  2. Hi! I want to make a youtube radio to my server. I don't want to use browser, just playSound3D. Does anyone have any experience? I know i have to use API for convert, but i don't really know other languages than lua. Ty for reply.
  3. Hi! I want to know, it is possible to calculate horsepower in mta:sa? I want to make a hp based tuning-system, and thats an important part. How can i do it?
  4. Hi! I use @Ren_712's object-viewer resource for my cars, and i have a problem with using shaders. I want to apply a light shader to the car, which turns on only the vehiclelights128 texture without the lights. Here is my shader: #include "mta-helper.fx" float gMultiplier = 0; sampler Sampler0 = sampler_state { Texture = (gTexture0); MinFilter = Linear; MagFilter = Linear; }; struct VSInput { float3 Position : POSITION0; float2 TexCoord : TEXCOORD0; }; struct PSInput { float4 Position : POSITION0; float2 TexCoord : TEXCOORD0; }; PSInput VertexShaderFunct
  5. Hi+! I want to make diesel smoke from the exhaust but i don't know how. I already made a script which replaces the smoke texture, but that is not perfect , because the game uses the def. Smoke texture for the exhaust and the wheel smoke, so if is change the exhaust smoke to black, the wheel smoke changes too.
  6. Hi! I just started to make a hud-system, but i can't resume my system, because i'dont know, how to make this: I have a stickman png, and i want to make an injury system.I want to make if the player hits a car, jump from high ground etc... the player break their bones, and it's visible on the stickman, and the player can't kick, punch shoot etc. What functions i need to use? Ty all
  7. I think, the car separate is too hard for me, i never heard about tables so its very hard for now
  8. Thank you, i try to make that. While i was working, i found a bug. The script changing the texture when the indicator turned on, but if it was off, there are a black texture. In small indicators that is indiscernible but in bigger indicators it is very "ugly". U can see, if the script is'nt running, there is the texture, but if i start the script that going to black.
  9. So hi again! I try to make the separatem but i cant do perfect. This is the left side: local indicator_blink_duration_ms = 333; -- time in milliseconds that the indicator should blink. local vehicle_indicator_lights = { engineApplyShaderToWorldTexture(shader_right, "p", n); engineApplyShaderToWorldTexture(shader_left, "l", n); }; local function getVehicleIndicatorLights(vehicle) if (vehicle_indicator_lights[vehicle]) then return vehicle_indicator_lights[vehicle]; end local info = {}; info.indicator_left_on = false; info.indicator_left_start = fals
  10. Thank you, i made it The last part is the separate +1: can you help me edit the shader, for fade in and fade out effect? Is that possible? I mean the texture appears smooth.
  11. I found the bug, i have a line what i made for debug a bug. Without this if i left the car, and dont release the key button, the indicator is working. seat = getPedOccupiedVehicleSeat(localPlayer) if seat then So my idea is this: Turn on with mouse click and turn off with click again. Can u give me a function for this? And now, i try to make the car indicator logic separated
  12. EDIT: We tested it again, and its visible, but only visible for other car drivers and passengers.
  13. So i tested the client-server communication with my friend, but he dont see the indicator. Only works on client side, why?
  14. I dont really understand what i need to do,so i updated my indicator_left and indicator_right code with this: addEventHandler("onClientRender", root, function() for _,info in pairs(vehicle_indicator_lights) do local vehicle = info.vehicle; -- TODO: update the left and right vehicle indicator light shaders. end end end ); And this is what i got: function left_indicator() local now = getTickCount(); seat = getPedOccupiedVehicleSeat(localPlayer) for _,info in pairs(vehicle_indicator_lights) do local vehicle = info.vehicle; if
  • Create New...