Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. Captain Cody

    hide hud

    https://wiki.multitheftauto.com/wiki/OnClientHUDRender function hidehud() hideHUD(false) end addEventHandler("OnClientHUDRender",root,hidehud)
  2. function createTeamsOnStart () teamAdmmin = createTeam ( "teamname", r, g, b) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) Change the variables, then add this script server side, it'll automaticly create your team.
  3. Bumpity roo, please someone help, this is last piece to puzzle I've been working on for weeks.
  4. Captain Cody

    hide hud

    local hudTable = { "radar", "ammo", "weapon", "area_name", "wanted", "money", "health", "clock", "vehicle_name" } function hideHUD(enable) for _, hud in ipairs(hudTable) do showPlayerHudComponent(hud, enable) end end addEventHandler("onClientResourceStart", resourceRoot, function() hideHUD(false) end) addEventHandler("onClientPlayerSpawn", getLocalPlayer(), function() setTimer ( hideHUD, 2000, 1, false ) end) addEventHandler("onClientResourceStop", resourceRoot, function() hideHUD(true) end) Adds that small delay needed for the client to utilize the hud and stuff.
  5. I don't get what you mean.
  6. If you're afraid to use it due to lag, from my experience stuff like this won't cause any lag.
  7. [url=https://wiki.multitheftauto.com/wiki/GetElementsWithinColShape]https://wiki.multitheftauto.com/wiki/Ge ... inColShape[/url] if [url=https://wiki.multitheftauto.com/wiki/GetElementData]https://wiki.multitheftauto.com/wiki/GetElementData[/url] ('dataname") == data then local cols = getElementsWithinColShape ( colshape, "colshape" ) for theKey,colshapes in ipairs(cols) do if getElementData ( colshapes , "datakey" ) == data jah want then outputDebugString("So and so col shape is in another colshape, oh focking no.")
  8. Any one know good way of applying texture shader over a dark color, and still getting the color you're trying to produce instead of black, or very dark variant of that color.
  9. https://wiki.multitheftauto.com/wiki/CreateShader https://wiki.multitheftauto.com/wiki/OnClientWeaponFire https://wiki.multitheftauto.com/wiki/En ... rldTexture Etc.
  10. https://wiki.multitheftauto.com/wiki/Is ... inColShape https://wiki.multitheftauto.com/wiki/Ge ... inColShape From what I know it should be able to detect other colshapes.
  11. Turn development mode on https://wiki.multitheftauto.com/wiki/SetDevelopmentMode then use /showcol If that is what you are asking to see if they are intersecting.
  12. https://community.multitheftauto.com/in ... ils&id=360 ?
  13. Nothing. Just applys a shear black texture no mater what I set the texture, or colors as.
  14. toggleControl ( source, "brake_reverse", false ) https://wiki.multitheftauto.com/wiki/ToggleControl
  15. https://wiki.multitheftauto.com/wiki/Dx ... reenSource
  16. function(x, y, z) local model = getElementType(source) -- source is the element that has changed his position outputChatBox("The "..model.."'s position was changed to: "..x..", "..y..", ".. z) end) Change last part of code to thus
  17. Which section of this code pairs with 65: ?
  18. The fx file is a shader file, meaning you will have to take use of this shader file and script some sort of function for it.
  19. Does it give you the line of code??
  20. Any know how? Really need to figure out how I would go about doing this so I can move forward with my tune shop.
  21. He wants the marker to move up and down, no there is no function for on object finish moving, but you can use a timer for it.
  22. You define the table with Table = {} then set the values with Table["Value"] = value you'd like then load them with value = Table ["Value"]
×
×
  • Create New...