Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. https://www.mediafire.com/?ww558fl8wo9wmyf
  2. Col file is all screwed up, fixing it now.
  3. Captain Cody

    .

    -- Also a bit my bad on my part, I didn't read what you said fully. Any ways if you use the relative then you don't need my code as far as I know.
  4. Captain Cody

    .

    relative == 0 to 1, automaticly ajusts itself depending on the resolution.
  5. #1 is invalid, doesn't matter object size #2 Is the col defined correctly? #3 Could have.
  6. Captain Cody

    .

    H = PUT YOUR HIGHT HERE W = PUT YOUR WIDTH HERE local height, width = guiGetScreenSize() local adjustH = (1/H)*height local adjustW = (1/W)*width dxDrawRectangle(1555*adjustH , 1003*adjustW , lenght*adjustH , 16*adjustW , tocolor(rr,gg,bb,alpha), false) dxDrawRectangle(1555*adjustH , 1003*adjustW, 320*adjustH, 16*adjustW, tocolor(0, 0, 0, 120), false)
  7. All you have to do is find the location of one light and mirror it.
  8. The lights are not part of the vehicle components as defined in there. There are 2 for head lights and 2 for tail lights, both are mirrored. But getVehicleComponentLocation does not find them.
  9. God danm it that might actually work; try using HeadLights, and for vehicles with dual head lights, Highlights1 (Or 2) EDIT No it will not work due to it not being added under Chassis_Dummy. Instead it's added to the root vehicle.. Either that or it's ignored for some reason.
  10. That's the same code I just posted, we need the whole code so we can debug it.
  11. function JobDone ( hitElement, matchingDimension ) if hitElement then local elementType = getElementType( hitElement ) if elementType == "player" then if isElement( EndDesMarker ) then destroyElement( EndDesMarker ) end if isElement( EndDesBlip ) then destroyElement( EndDesBlip ) end if isElement( CarJacker ) then destroyElement( CarJacker ) end if isElement( CarJackerBlip ) then destroyElement( CarJackerBlip ) end money = math.random ( 2000, 5000 ) givePlayerMoney ( hitElement , money ) outputChatBox ( "Got job! You received $" ..money, hitElement ) end end addEventHandler( "onMarkerHit", EndDesMarker, JobDone )
  12. Typo at line 3 -- Other guy posted while I was typing -- function JobDone ( hitElement, matchingDimension ) local elementType = getElementType( hitElement ) if elementType == "player" then if isElement( EndDesMarker ) then destroyElement( EndDesMarker ) end if isElement( EndDesBlip ) then destroyElement( EndDesBlip ) end if isElement( CarJacker ) then destroyElement( CarJacker ) end if isElement( CarJackerBlip ) then destroyElement( CarJackerBlip ) end money = math.random ( 2000, 5000 ) givePlayerMoney ( source, money ) outputChatBox ( "Got job! You received $" ..money, source ) end end addEventHandler( "onMarkerHit", EndDesMarker, JobDone )
  13. try either photo shop if you have it. Or GIMP
  14. You can bind WASD and Space using bindkey, and cancel it if any of those are hit. Or as KariiiM said, constantly check the location and if it differs from the original cancel it.
  15. Check vehicle.txd If your looking for the name of the file use nightly.multitheftauto.com/files/shaders/shader_tex_names.zip
  16. How would I go about finding the brightness around an object "Example" - Sun shining near it, street lamp, interior light, etc. I'm trying to make a car paint shader that adjusts automatically depending on the amount of light on it, and I cannot figure out how.
  17. Oh sweet a person I can compete with when it comes to custom vehicle modding scripts.
  18. I'm going to be moving the updated handling part of my scripts in a couple of weeks or so, if you haven't found it by then I'll report back with what I've found.
  19. Try making a spam delay, sometimes a marker will trigger more then once which will in simple terms fock everything up.
  20. I've completely forgotten about this, sorry; I did do a bit of research but came up empty. I'm sure it is indeed possible. Just will take alot of fine tuning. Which at the moment I have no time for due to having to complete an island and a server. As before, very sorry but at the moment I cannot help.
  21. *Never mind, think I fixed it.
×
×
  • Create New...