Jump to content

Slim

Members
  • Posts

    96
  • Joined

  • Last visited

Everything posted by Slim

  1. If I'm not mistaken, the part I made bold and highlighted is how you control if colors are enabled in DX or not. tocolor(255, 255, 255, 255), 1, "default", "center", "top", false, false, false, true, false)
  2. Did you backup the default ACL file? Always make a backup first You're editing it wrong for sure probably, look more carefully. Add me on Skype if you need: [email protected]
  3. Slim

    Restart server

    Why do you need the server to restart? There must be a better way for what you need.
  4. I would try duplicating the ped in zModeler, enlarging the size just BARELY on the duplicated layer and make it transparent, apply the dirt shader etc to the transparent layer, while the real ped is revealed behind the transparency/dirt layer. As far as I know, you can't apply 2 shaders to the same instance.
  5. LUA is one of the fastest scripting languages
  6. I think you can speed them up, but setting maximum speed and changing handlings for aircraft is impossible I think.
  7. https://community.multitheftauto.com/index.php?p=resources&s=details&id=14987
  8. NOT TESTED. shader = dxCreateShader("tex.fx",0, 0, true, 'ped') addEvent("broadcastEnableShader", true) -- allow remotely triggered (from server) addEventHandler("broadcastEnableShader", root, function(some_data) -- receive broadcast from the server img = dxCreateTexture(""..math.random(1,3)..".png") dxSetShaderValue(shader, "tex", img) engineApplyShaderToWorldTexture(shader, "Hoodie_green_co",thePlayer) end ) addEventHandler( 'onClientResourceStart', resourceRoot, function() for _, p in ipairs(getElementsByType('ped')) do if isElementStreamedIn(p) then local clothing = getElementData(p, 'blood') if clothing then triggerServerEvent("announceEnableShader", localPlayer, p) end end end for _, p in ipairs(getElementsByType('player')) do if isElementStreamedIn(p) then local clothing = getElementData(p, 'blood') if clothing then triggerServerEvent("announceEnableShader", localPlayer, p) end end end end) addEventHandler( 'onClientElementStreamIn', root, function() if getElementType(source) == 'player' or getElementType(source) == 'ped' then local clothing = getElementData(source, 'blood') if clothing then triggerServerEvent("announceEnableShader", localPlayer, source) end end end) addEventHandler( 'onClientElementDataChange', root, function(name) if (getElementType(source) == 'player' or getElementType(source) == 'ped') and isElementStreamedIn(source) and name == 'blood' then if getElementData(source, 'blood') then triggerServerEvent("announceEnableShader", localPlayer, source) end end end) --SERVER addEvent("announceEnableShader", true) addEventHandler("announceEnableShader", root, function (some_data) -- triggerClientEvent(root, "broadcastEnableShader", source, some_data) end ) I think the above code should work, but if it doesn't, try replacing all "localPlayer" with "thePlayer". If that also doesn't work, replace all the "source" with "thePlayer" also. Also from my experience, shaders don't effect MTA performance, I'm not sure though.
  9. Learn shaders and zModeler.
  10. Just add a timer for like 30 minutes or so, then enable a different timer when that one ends, the second timer could be one that slowly drops the players health until he starts to eat.
  11. That panel is bugged, most functions work but the design isn't perfectly working with all resolutions. Make sure there's no spaces in the resource name.
  12. .FX Something like this: float3 color; Should be in your .FX file, find the tag, for example this one is "color". .LUA function resource_starts() dxSetShaderValue(shader, "color", 255, 0, 0) end addEventHandler("onClientResourceStart", getRootElement(), resource_starts) onClientRender constantly is called EVERY TIME the clients screen renders a frame, it's not efficient for something like what you need. You're gonna have to find a new event to replace it. https://wiki.multitheftauto.com/wiki/Client_Scripting_Events I recommend onClientResourceStart Source: MTA SA Wiki
  13. So what method did you use to restore the collision files?
  14. ^ What he said, you need an accounts database it sounds like. Check MTA resources Also, you can retrieve vehicle variants or components even though there's not much you could do with these it's an example. https://wiki.multitheftauto.com/wiki/Vehicle_variants https://wiki.multitheftauto.com/wiki/Vehicle_Components
  15. Maybe you could pull off overriding the default skydive animations, you know how you would make a player dance? idk if it'll work. https://wiki.multitheftauto.com/wiki/Animations
  16. Just restore the .COL files manually, by extracting them from IMGtool and loading them in just as you would a modded .COL, but with the default. I once removed the legs on this road piece you see here and it bugged the servers because I was replacing the ID 8557 which is the road piece itself, (vgshseing27), you could replace a different object like a basketball for example, and it won't effect any important objects later in the server.
  17. Is it happening to the objects that were previously replaced?
  18. Slim

    MTA PUBG

    @Khadeer143You act like the owners of MTA PUBG servers invented battle royale @HangyaI think MTA development's fun, keep learning Nobody will do anything for you but MTA's possibilities represents more than the definition of a sandbox, just climb the ladder of knowing certain things there's SO much on this website. You could create a decent game with MTA using GTA SA physics for sure. You should find somebody to add on Skype or Discord or something to ask live messages to, that's how I learned, from a Russian Find multiple teachers if you can, find free resources on MTA resources and test them/reverse engineer them to learn, "kitty script" until you have a basic understanding MTA resources - Free resources MTA wiki - Extraordinary amounts of information, learn to use it.
  19. "You can use tonumber as a quick check if a variable contains something convertible to a number."
  20. Idk. I even replaced the default .TXD with a transparent .PNG and it won't disappear it just goes white. So long story short, I think the actual parachute canopy ID is 3060 but it doesn't work when replacing. And the parachute backpack is ID 371. I was gonna suggest turning the default parachute transparent and using AttachElements but, since it remains white you're out of luck. You can currently change the shaders of the default canopy and that's it. If I'm not mistaken, the guy in the video has CLEO mod installed. paracx.txd Maybe the .DFF is named something weird, but I couldn't find anything, idk man. Since shaders allow you to change them according to names instead of ID's, as far as I know this is all you've got.
  21. Slim

    SCRIPT !HELP

    Probably not efficient for what you're trying to do. But I'm not much of a scripter.
  22. Never seen this before, probably a script problem. Just CTRL+F and search for "ped", or "cj", "shadow", etc. Good luck bro.
×
×
  • Create New...