• Content count

  • Joined

  • Last visited

Community Reputation

7 Neutral

About Justin|X5|

  • Rank
    Advanced Member


  • Gang
    Xtreme 5
  • Location
  • Occupation
    X5 FTP operator
  • Interests
    Cactus, plants, entrepreneurship, mycology, organisms, computers, money
  1. Need help with shader table

    Does anyone know how to assign shaders to individual textures that aren't related to vehicles? Like the textures in particle.txd Can these be assigned to individual players somehow? Car paintjob shaders allow a function to assign to individual "vehicle" But is there a way to do this with a .txd like particle.txd?
  2. Adding mods, not replacing?

    You can totally do multiple cars with same vehicle ID, but none of the doors/damaged parts will work. Learn Zmodeler
  3. Need help with SetVehicleComponentVisible

    The MTA developers did their best but yes that's how it is. You could UV map the door and load a transparent shader to the door when you enter the command. And of course you could put the doors under a different parent and attempt to find a way to disable the enter/exit animation but idk
  4. [HELP] Moving the default chat?

    Search the MTA resources there's some nice examples of chat box replacements.
  5. Problem With removing user from acl

    In your .meta file, is the script this code is placed in server sided or client sided?
  6. [REQ] Infernus skin

    I can do this for you add me on Skype JustinNunya@outlook.com
  7. Green screen shader

    Seems like a lot of work. In one of my DM maps I replaced the textures of 1 tree, JUST 1 TREE. And almost every tree in the entire world started to get replaced. I then remembered my experience with 3DS Max, and what you name textures in the modeling program has a lot to do with this. Then discovered that I could use the SAME .TXD, to replace EVERY tree, to my knowledge at least, because I didn't try every tree, but I know I replaced tooooons of trees with the same .TXD file that's only 177 KB. I opened the GTA3.img. > Extracted the tree .TXD of my choice. > Opened TXD Workshop. > Extracted the .TXD as a .PNG. > Opened the .PNG in PhotoShop. > Changed the green foliage to blue. > Saved the .PNG > Went to TXD Workshop, imported the .PNG I had just made edited, so it replaced the default .TXD we extracted before from GTA3.img. > Saved the .TXD file > Imported to the game with a normal script. function resource_starts () txd3 = engineLoadTXD ( "3.txd" ) engineImportTXD ( txd3, 714 ) --Use the same .TXD to replace multiple objects in the world, and sometimes replacing 1 tree texture, will do 20 somehow. engineImportTXD ( txd3, 672 ) --Like I said it probably has something to do with the texture name they use in the modeling program. engineImportTXD ( txd3, 675 ) --But try using this example and see how far it gets you. end addEventHandler ( "onClientResourceStart", getRootElement(), resource_starts ) To cut file size you can also delete other images out of the .TXD files, if they're not being replaced with an edited version they'll stay default. Goodluck.
  8. How to make an countdown timer?

    Here's a server sided example: function ShowCountdown () local accountname = getAccountName ( getPlayerAccount ( player ) ) --Grabs the users account name if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "SuperModerator" ) ) then --Checks if the user account name's in the ACL group (SuperModerator). --You could put something here for when the timer starts. --Start of timer script setTimer ( function ( ) --You could put something here for when the timer ends. end ,10000, 1 --Timer runs for 1 minute, that's 60000 milliseconds. ) --End of timer script else --Checks for the opposit return of (if) events (AKA the account wasn't in the ACL group we checked for (SuperModerator). outputChatBox ( "You're not a smod, piss off!", player, 255, 12, 15 ) --If the account name's not in the ACL group we checked for, tell them to piss off! end end addCommandHandler ( "startcountdown", ShowCountdown ) --Attaches a command of your choice to the function above (ShowCountdown). REMEMBER, the (if) event above that checks accounts for ACL groups, can only be used server sided. Here's if you're using client sided: function ShowCountdown () --You could put something here for when the timer starts. setTimer ( function ( ) --You could put something here for when the timer ends. end ,60000, 1 --Timer runs for 1 minute, that's 60000 milliseconds. ) end addCommandHandler ( "startcountdown", ShowCountdown ) --Attaches a command of your choice to the function above (ShowCountdown). If you're not sure if your LUA file is server sided or client sided, go to the (meta.xml) file the folder of the LUA script, open it, and check if it says type="server" /> or type="client" /> Goodluck. Add me on Skype if you have any questions. JustinNunya@outlook.com
  9. [Race] Electric Outrun

  10. [HELP]setskin function

    Funny you add this 1 day after we released ours.
  11. [QUESTION] How to create a radar?

    You'd be better off downloading the rectanglular radars availible on MTA resources and converting them to your own liking. When I first opened a server, I realized that if you find a circular radar based on a .PNG as the background, you can open it in a picture editing program. For example: Photoshop. Once that's done just delete everything, blackout the entire size of the rectangle, add 65% or so transparency, save, exit, add to MTA, start resource, and in-game nobody will notice, and if they do they care too much.. The functionalities you're looking for instead of a rectangular radar is probably nametag blips, colored blips, etc. Goodluck man
  12. Apply shaders to individual infernus (ALMOST WORKING)

    Mmmmm did enough research and annoyed enough scripters to finally get it working. Thanks everybody.
  13. Apply shaders to individual infernus (ALMOST WORKING)

    Forgot to mention: There's a really good chance that the working script my modeler friend made for me, only isn't working because of "GetElement". Plz help Example: With OutputChatbox, 2 of ways you can go, only your client gets the message, or the whole gets it. Or when you place a marker, the whole server can see it, or just your client. And like I said, this script applies the shader to every existing infernus instead of individual. I need someone to take a quick look at the script please, I'm almost sure it's a tiny fix... @CodyJ(L) remap_start = createMarker(2478, -1666, 14, "corona", 20, 255, 255, 0, 255) remap1_start = createMarker(2550, -1666, 14, "corona", 20, 255, 255, 0, 255) shader_stop = createMarker(2478, -1690, 14, "corona", 10, 255, 255, 0, 255) local shader = dxCreateShader("tex.fx") addEventHandler("onClientMarkerHit", getRootElement(), function(player, matching) if player ~= getLocalPlayer() then return end if not isPedInVehicle(player) then return end vehicle = getPedOccupiedVehicle(player) if source == remap_start then startremap() elseif source == remap1_start then startremap1() elseif source == shader_stop then stopshader() end end) function startremap() if shader then dxSetShaderValue(shader, "gTexture", dxCreateTexture("remap.png")) engineApplyShaderToWorldTexture(shader, "remap") end end function startremap1() if shader then dxSetShaderValue(shader, "gTexture", dxCreateTexture("remap1.png")) engineApplyShaderToWorldTexture(shader, "remap") end end function stopshader() engineRemoveShaderFromWorldTexture(shader, "remap") end
  14. [REL] Texture replacement SHADER (car wraps etc)

    Custom UV mapping is where the texture locates itself on your vehicle. The provided texture isn't gonna work with the provided infernus.dff and infernus.txd The script is apparently almost working but I've not managed yet Help me bro @CodyJ(L)