Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. how would I make it so when I do /utrain when im on train tracks with utility van it make it so you can drive on the rails like a train?
  2. HAHAHAHAHAHHAHAHHAHAHAHHAHAHAHAHAHAHAHAHHAHHAHAHA
  3. How would I make it so only cars from the resource Vehiclesave Respawn? function spawnVehs() for k, v in ipairs (getElementsByType("veh")) do createVehicle(getElementData(v,"model"),getElementData(v,"posX"),getElementData(v,"posY"),getElementData(v,"posZ"),0,0,getElementData(v,"rotation")) end for k, v in ipairs (getElementsByType("vehicle")) do toggleVehicleRespawn(v,true) setVehicleIdleRespawnDelay(v,120000) end end addEventHandler("onResourceStart",getResourceRootElement(),spawnVehs) function respawnVeh() setTimer(respawnVehicle,5000,1,source) end addEventHandler("onVehicleExplode",getRootElement(),respawnVeh And the adder\ \ function addNew(source,command) if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin"))) then if (isPedInVehicle(source)) then local x,y,z = getElementPosition(getPedOccupiedVehicle(source)) local model = getElementModel(getPedOccupiedVehicle(source)) local rotX,rotY,rotZ = getVehicleRotation(getPedOccupiedVehicle(source)) local file = xmlLoadFile("vehicles.map") local veh = xmlCreateChild(file,"veh") xmlNodeSetAttribute(veh,"model",model) xmlNodeSetAttribute(veh,"posX",x) xmlNodeSetAttribute(veh,"posY",y) xmlNodeSetAttribute(veh,"posZ",z) xmlNodeSetAttribute(veh,"rotation",rotZ) xmlSaveFile(file) xmlUnloadFile(file) outputChatBox("*INFO* The vehicle has been successfully added and will be created in 5 seconds.",source,255,255,0) outputDebugString(getPlayerName(source).." has mapped a "..getVehicleName(getPedOccupiedVehicle(source)).." in "..getElementZoneName(getPedOccupiedVehicle(source))..", "..getElementZoneName(getPedOccupiedVehicle(source),true)..".") setTimer(function() createVehicle(model,x,y,z,0,0,rotZ) end,5000,1) end end end addCommandHandler("addc",addNew)
  4. Im Sorry What was posted Yesterday I was in A really bad mood due to The Fighting
  5. I'd Need a mic 3 Dounuts some root beer And An Empty room
  6. "Just Shut up" well im just tryin to help theres many ways to compress TXD files not just the pictures in them Now this is last time ima post here cuz your a :~ dont have to Tell me to shut up when Im just tryin to say compress them into a smaller image and the TXD will load them just as it would the other image but with A smaller download, You need to configure the settings for the pictures in the TXD editor
  7. And Btw Another thing http://compressnow.com/, https://tinypng.com/ Theres alot of them.
  8. Callin me normal foo Now, Thing is I dont think small scale, I said 5kb aint nothing in terms of regular modding, Though now that I accually take a look at this topic Maybe it could be if you have 500 skins Though 5kbx500 is 2500kb 2.5 mb Though theres a work around with the right type of scripting Minecraft doesnt download it, They just sync the skins. If you are worried about bandwith while downloading or Syncing Finda better server host. But lets say that doesnt work, Make it so when A person leaves and another person joins it doesnt download the skin for the person who just joined, But then if the person joins again tryn make it so it will download the skin for the person who hasnt downloaded it.
  9. Captain Cody

    Shader

    How'd I make a snow shader, Snow is coming for me soon and I wanna add snow on my server but i have no idea where to begin Edit: I found a mod but is there any way to make the Effect Whiter on Roads? https://community.multitheftauto.com/index.php?p=resources&s=details&id=3361
  10. How can I make it so I can project you tube videos on objects?
  11. How can I make it so when a person joins the server it removes the radar, or is there a function to remove and add the radar Im trying to make it so when a person joins he has no radar but he can go to a store a buy a "Gps" or the radar and I want to fully remove the HUD but keep the money is there any way to do that?
  12. Info Updated, Please join we need players
  13. Any way I could hire you on my server, We've been looking for another scripter Because I can script but barly and every other scripter I find charges too much or doesn't trust that I'll pay
  14. What I mean is there anyway to do it from a list of urls that I set in the lua file?
  15. How would I make it so I can switch what it's playing? Example Url1: Url2: url3
  16. How can i make it so on command I can set the volume and with another command set the distance? And If it wouldnt hurt how would I make it so I can change radio station on command "/setstationbeach 1, 2,3 or 4 addEventHandler( 'onClientResourceStart', resourceRoot, function( ) local uSound = playSound3D( 'http://www.181.fm/asx.php?station=181-eagle', 484.724609375, -1830.3310546875, 5.415961265564) setSoundMaxDistance( uSound, 110 ) end ) the wiki atricals I found I couldn't find a think on how to do this And if its too much Im mostly trying to find out how to change the station
  17. ok I found out that handlingeditor wasnt exported I exported it and it worked for I bit so I created another script for another garage "same thing just differnt location and now in debut script it says failed to call "handlingeditor"
  18. something about handlingedits/shared/wrappers/general 16' failed to export none running client resource but I cant find any thing about exports in general
  19. I while ago I made a marker that made the script hedit pop up on the screen that used exports, but I updated hedit to latest version and now it wont show up, Is there any way to make it so it triggers command? marker = createMarker( -1179, -1087.21875, 128, "cylinder", 2 ) addEventHandler('onClientMarkerHit', marker, function( hitElement) if hitElement == localPlayer or hitElement == getPedOccupiedVehicle ( localPlayer ) then exports.handlingeditor:toggleEditor() end end) Btw, I have a custom command and I dont want any one using hedit with out going to garage
×
×
  • Create New...