Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. Any one know why this is not working?
  2. Not wanting to work, Assuming that MARKER should be changed to the markers name I set it, nothing.
  3. I'm attempting to open gui from marking hit but it's not wanting to work, nothing in debug script-- Server side - function gui (hitElement) if getElementType (hitElement) == "player" then triggerEvent ( "OnMenuClick", resourceRoot ) else return false end end Client side "GUI Stuff" GUIEditor = { button = {}, window = {}, memo = {} } addEvent( "OnMenuClick", true ) addEventHandler("OnMenuClick", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0.35, 0.35, 0.29, 0.31, "Trucking", true) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.73) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFFFEFE") GUIEditor.button[1] = guiCreateButton(0.39, 0.38, 0.22, 0.05, "Accept Legal Load", true) GUIEditor.button[2] = guiCreateButton(0.39, 0.44, 0.22, 0.05, "Accept Illegal Load", true) GUIEditor.button[3] = guiCreateButton(0.40, 0.50, 0.21, 0.07, "Cancel", true) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFC30000") GUIEditor.memo[1] = guiCreateMemo(0.39, 0.58, 0.23, 0.07, "Trucking Job is new, it may have bugs. If you find any please report.", true) guiMemoSetReadOnly(GUIEditor.memo[1], true) end )
  4. I'm working on a trucker script, but I cannot get the blip for the trucker job location to appear on the main map. JobBlip = createBlip (2776.9, -2423.9, 12.7, 42) setBlipVisibleDistance(JobBlip, 1000)
  5. I havent tested it yet huge fight at car shop....
  6. I created a script but it does nothing and nothing apears in Debugscript carshop = createColRectangle ( -2001.0808105469, 218.60647583008, 114, 98 ) addEventHandler( "onColShapeHit", carshop, function(hitPlayer,thePlayer) if getElementType(hitPlayer)=="player" then triggerClientEvent(thePlayer, "zoneEnter", thePlayer) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end end) addEventHandler( "onColShapeLeave", carshop,function(hitPlayer,thePlayer) if getElementType(hitPlayer)=="player"then triggerClientEvent(thePlayer, "zoneExit", thePlayer) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) addCommandHandler( "devmode", function () setDevelopmentMode ( true ) end ) end end)
  7. How would I make it so in certain zones you can shoot, Ive been working with a car shop resource where you spawn the cars and people can get in them and it will ask if there person wants to buy them but every time I leave I come back and some one either blew up all the cars or shot up all the cars
  8. hmmmmm Anub stop being a donkey 2nd I Vote N/A --- N/A = not Decided
  9. I hate free roam so I donno
  10. Ive been going around gta sa and finding stuff that can be made better thru txd editing, though I went to work on something and all but 2 txd files loaded function replaceModel() txd = engineLoadTXD("buildings/vending.txd", 1775 ) engineImportTXD(txd, 1775) txd = engineLoadTXD("buildings/jump.txd", 1633 ) -Not loading engineImportTXD(txd, 1633) txd = engineLoadTXD("buildings/billboards.txd", 9188 ) engineImportTXD(txd, 9188) txd = engineLoadTXD("buildings/junkyard.txd", 18251 ) engineImportTXD(txd, 18251) txd = engineLoadTXD("buildings/motel.txd", 11012 ) -Not loading engineImportTXD(txd, 11012) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) degugscript:
  11. What you mean ''hard things'' creating a hud is 20 minutes working , a scripter with 10 days experience can create a hud.
  12. How would I removed objects that I cant select, ive been working on alot of stuff but I cannot remove some fences
  13. Ah I already found it thx any ways
  14. hmmmm ik this but how do I make it play when I press on gas and how do I remove old engine sound
  15. How do I remove all houses, where is the SQL file stored?
  16. How Would I change an Engines Sound Example Tampa, I want the sound from hustler on it but im not sure how duh heck I'd do that
  17. How do I use this? I go to the web page click on Map and Nothin....
×
×
  • Create New...