HEX
HexscriptsClassicCamper

Configurations

Here you will get all configurations & open source files that are included within this script.

Open Source Files

--If the Default Camper Interior dosnt Load, make sure your have running BOBIPL and Enabled TrevorsTrailer
Config = {}

Config.Debug = false

Config.Locale = 'de'

Config.Framework = 'ESX'

Config.CamperPrice = {
    ['black'] = true, --Need Black Money?
    ['amount'] = 75000 --How much?
}

Config.MenuPositions = { --RageUI Position (Default Mid)
    x = 725,
    y = 325
}

Config.CrackTime = 600 --10 Minutes

Config.BuyNPC = {
    model = GetHashKey('cs_floyd'),
    scenario = 'WORLD_HUMAN_SMOKING'
}

Config.Marker = { --Marker Settings
    type = nil, --https://wiki.rage.mp/index.php?title=Markers
    scale = vector3(1.0, 1.0, 1.0),
    color = {
        red = 255,
        green = 46,
        blue = 58,
        alpha = 100
    },
    moveUpAndDown = true,
    rotate = false
}

Config.Sphere = {
    radius = 12.5, --Max Attack Zone Distance
    color = { --Attack Zone Colors
        red = 255,
        green = 46,
        blue = 58,
        alpha = 0.25
    },
}

Config.BuySpot = vector4(-768.8842, 5597.2759, 33.6063, 168.5012) --Spot where Players have the Buy Menu.
Config.CamperSpawnSpot = vector4(-746.9485, 5538.5552, 32.75, 117.5338) --Spot where the Camper Spawns after buy.
Config.RebuySpot = vector4(1973.04, 3816.14, 33.0, 32.44) --Spot where the Camper Spawns after Rebuy.
Config.StorageSpot = vector3(1973.0370, 3819.3596, 32.5) --Spot where Players add Loot to their Storage
Config.CamperEnterSpot = vector3(1973.1300, 3816.0010, 33.0)
Config.CamperExitSpot = vector3(1973.1300, 3816.0010, 33.0)

Config.Storage = { --Be carefull touching this, Removing an Index from here automaticlly Clears on next Restart.
    ['bulletproof'] = { --Item Name or WEAPON_ Name.
        need = 10, --Amount need to Attack other Campers.
        max = 100, --Max Amount the Group can lay in their Storage.
    },
    ['WEAPON_ASSAULTRIFLE'] = {
        need = 5,
        max = 25,
    }
}

Config.BlacklistedJobs = { --Jobs that can't buy a Camper
    'unemployed',
    'ambulance',
    'mechanic',
    'sheriff',
    'police',
    'army',
    'fib',
}

Config.ShopBlip = {
    enable = true,
    Sprite = 636,
    Scale = 0.8,
    Color = 1,
    Text = 'Camper Dealer'
}

Config.Blip = {
    Sprite = 380,
    Scale = 1.2,
    Color = 1,
    Text = 'Camper'
}

Config.Locales = {
    ['de'] = {
        ['showBuyNotify'] = 'Drücke [~INPUT_PICKUP~] um das Camper Menu zu öffnen!',
        ['showEnterNotify'] = 'Drücke [~INPUT_PICKUP~] um den Camper zu betreten!',
        ['showLeaveNotify'] = 'Drücke [~INPUT_PICKUP~] um den Camper zu verlassen!',
        ['showWarCampNotify'] = 'Drücke [~INPUT_PICKUP~] um das Kriegslager zu öffnen!',

        ['enteringCamper'] = 'Betrete Camper...',
        ['leavingCamper'] = 'Verlasse Camper...',
        ['cantEnterCamper'] = 'So komme ich hier nicht rein...',

        ['camperPrice'] = 'Preis: %s$',
        ['buyCamper'] = 'Ich möchte ein Camper kaufen!',
        ['rebuyCamper'] = 'Ich möchte mein Camper zurück holen!',
        ['blacklistedJob'] = 'Dir verkaufe ich nichts!',
        ['alreadyHaveCamper'] = 'Deine Fraktion besitzt bereits ein Camper!',
        ['notEnoughMoney'] = 'Du hast nicht genug Geld!',
        ['camperBuyed'] = 'Camper gekauft!',
        ['notAtThisTime'] = 'Geht um diese Uhrzeit nicht!',
        ['notEnoughMembers'] = 'Es sind nicht genügend Mitglieder Online!',
        ['notReadyStorage'] = 'Euer Kriegslager ist nicht voll!',
        ['ownCamper'] = 'Du kannst dein eigenen Camper nicht angreifen!',

        ['noAccess'] = 'Du kannst hier nichts machen!',
        ['rebuyedCamper'] = 'Camper Freigekauft!',
        ['notaCamper'] = 'Fahrzeug ist kein Camper!',

        ['camperCrackFailedDist'] = 'Du hast die Aufbrechzone Verlassen!',
        ['camperCrackFailed'] = 'Attacke Fehlgeschlagen!',
        ['camperDefended'] = 'Camper Verteidigt!',
        ['camperGotCracked'] = 'Euer Camper wurde aufgebrochen!',

        ['camperAlarm'] = 'Camper Alarm',
        ['startAttack'] = 'Deine Fraktion greift ein Camper an!',
        ['getAttacked'] = 'Euer Camper wird angegriffen',

        ['remainingTime'] = 'Verbleibende Zeit:',

        ['menuTitle'] = 'Camper',
        ['mainMenuSubtitle'] = 'Hey, wie kann ich dir helfen?',
        ['storageMenuSubtitle'] = 'Kriegslager',
        ['storagePut'] = 'Einalgern',
        ['storageTake'] = 'Nehmen',
        ['storageTakeTitle'] = 'Items nehmen',
        ['storagePutTitle'] = 'Items einalgern',
        ['howMuch'] = 'Wie viel?',
        ['inserted'] = 'Item hinzugefügt!',
        ['took'] = 'Item genommen!',
        ['notEnoughSpace'] = 'Nicht genug Platz!',
        ['dontHaveThat'] = 'Diesen Gegenstand hast du nicht!',
        ['invalidAmount'] = 'Untüligte Menge!',
        ['alreadyHas'] = 'Du hast bereits eine davon!',
        ['camperNotOpen'] = 'Camper ist nicht offen!',
    },
    ['en'] = {
        ['showBuyNotify'] = 'Press [~r~~INPUT_PICKUP~~s~] to open the Camper Menu!',
        ['showEnterNotify'] = 'Press [~INPUT_PICKUP~] to enter the Camper!',
        ['showLeaveNotify'] = 'Press [~INPUT_PICKUP~] to leave the Camper!',
        ['showWarCampNotify'] = 'Press [~INPUT_PICKUP~] to open the War Camp!',

        ['enteringCamper'] = 'Entering Camper...',
        ['leavingCamper'] = 'Leaving Camper...',
        ['cantEnterCamper'] = 'The Door is closed...',

        ['camperPrice'] = 'Price: %s$',
        ['buyCamper'] = 'I want to buy a Camper!',
        ['rebuyCamper'] = 'I want to Recall my Camper!',
        ['blacklistedJob'] = 'I dont sell you anything!',
        ['alreadyHaveCamper'] = 'Your Gang already has a Camper!',
        ['notEnoughMoney'] = 'You need more Money to Afford that!',
        ['camperBuyed'] = 'Camper buyed!',
        ['notAtThisTime'] = 'Doesnt work at this Time!',
        ['notEnoughMembers'] = 'Not enough Members Online!',
        ['notReadyStorage'] = 'Your War Camp is not full!',
        ['ownCamper'] = 'You cant attack your own Camper!',

        ['noAccess'] = 'You cant do anything here!',
        ['rebuyedCamper'] = 'Camper Rebuyed!',
        ['notaCamper'] = 'This Vehicle is not a Camper!',

        ['camperCrackFailedDist'] = 'You leaved the Attack Zone!',
        ['camperCrackFailed'] = 'Camper Attack Failed!',
        ['camperDefended'] = 'Camper defended!',
        ['camperGotCracked'] = 'Your Camper got Cracked!',

        ['camperAlarm'] = 'Camper Alarm',
        ['startAttack'] = 'Your Gang attacks a Camper!',
        ['getAttacked'] = 'Your Camper gets Attacked!',

        ['remainingTime'] = 'Time Remaining:',

        ['menuTitle'] = 'Camper',
        ['mainMenuSubtitle'] = 'Hey, how can i help you?',
        ['storageMenuSubtitle'] = 'War Camp',
        ['storagePut'] = 'Put',
        ['storageTake'] = 'Take',
        ['storageTakeTitle'] = 'Take Items',
        ['storagePutTitle'] = 'Put Items',
        ['howMuch'] = 'How much?',
        ['inserted'] = 'Added Item!',
        ['took'] = 'Tooked Item!',
        ['notEnoughSpace'] = 'Not enough Space!',
        ['dontHaveThat'] = 'You dont have that!',
        ['invalidAmount'] = 'Invalid Amount!',
        ['alreadyHas'] = 'You already have one of these!',
        ['camperNotOpen'] = 'Camper not Open!',
    }
}

function Notify(title, message, type)
    TriggerEvent('hex_hud:notify', title, message, type)
end

function Announce(title, message)
    TriggerEvent('hex_hud:announce', title, message, 5000)
end

function ShowHelpNotify(msg)
    AddTextEntry('hexHelpNotification', msg)
    BeginTextCommandDisplayHelp('hexHelpNotification')
    EndTextCommandDisplayHelp(0, false, true, -1)
end

On this page