Setup

Installation

Follow the instructions below to run the gusti-duarmemek script on your server

  • Extract file

  • Copy / cut gusti-duarmemek into your server's resources folder

  • Open server.cfg

  • Add the gusti-duarmemek script by ensure gusti-duarmemek in server.cfg

  • Restart server

  • Finished

  • Now you can enjoy the features of the gusti-duarmemek script on your server

Configuration

Config = {}

Config.CheckForUpdates = true -- Set it to true if you want to get the latest version update info
Config.Locales = 'en' -- Sorry, only this available 'en' and 'id'

Config.ExplosionTag = {
    DONTCARE = 0,
    GRENADE = 1,
    GRENADELAUNCHER = 2,
    STICKYBOMB = 3,
    MOLOTOV = 4,
    ROCKET = 5,
    TANKSHELL = 6,
    HI_OCTANE = 7,
    CAR = 8,
    PLANE = 9,
    PETROL_PUMP = 10,
    BIKE = 11,
    DIR_STEAM = 12,
    DIR_FLAME = 13,
    DIR_WATER_HYDRANT = 14,
    DIR_GAS_CANISTER = 15,
    BOAT = 16,
    SHIP_DESTROY = 17,
    TRUCK = 18,
    BULLET = 19,
    SMOKE_GRENADE_LAUNCHER = 20,
    SMOKE_GRENADE = 21,
    BZGAS = 22,
    FLARE = 23,
    GAS_CANISTER = 24,
    EXTINGUISHER = 25,
    PROGRAMMABLEAR = 26,
    TRAIN = 27,
    BARREL = 28,
    PROPANE = 29,
    BLIMP = 30,
    DIR_FLAME_EXPLODE = 31,
    TANKER = 32,
    PLANE_ROCKET = 33,
    VEHICLE_BULLET = 34,
    GAS_TANK = 35,
    BIRD_CRAP = 36,
    RAILGUN = 37,
    BLIMP2 = 38,
    FIREWORK = 39,
    SNOWBALL = 40,
    PROXMINE = 41,
    VALKYRIE_CANNON = 42,
    AIR_DEFENCE = 43,
    PIPEBOMB = 44,
    VEHICLEMINE = 45,
    EXPLOSIVEAMMO = 46,
    APCSHELL = 47,
    BOMB_CLUSTER = 48,
    BOMB_GAS = 49,
    BOMB_INCENDIARY = 50,
    BOMB_STANDARD = 51,
    TORPEDO = 52,
    TORPEDO_UNDERWATER = 53,
    BOMBUSHKA_CANNON = 54,
    BOMB_CLUSTER_SECONDARY = 55,
    HUNTER_BARRAGE = 56,
    HUNTER_CANNON = 57,
    ROGUE_CANNON = 58,
    MINE_UNDERWATER = 59,
    ORBITAL_CANNON = 60,
    BOMB_STANDARD_WIDE = 61,
    EXPLOSIVEAMMO_SHOTGUN = 62,
    OPPRESSOR2_CANNON = 63,
    MORTAR_KINETIC = 64,
    VEHICLEMINE_KINETIC = 65,
    VEHICLEMINE_EMP = 66,
    VEHICLEMINE_SPIKE = 67,
    VEHICLEMINE_SLICK = 68,
    VEHICLEMINE_TAR = 69,
    SCRIPT_DRONE = 70,
    RAYGUN = 71,
    BURIEDMINE = 72,
    SCRIPT_MISSILE = 73,
    RCTANK_ROCKET = 74,
    BOMB_WATER = 75,
    BOMB_WATER_SECONDARY = 76,
    MINE_CNCSPIKE = 77,
    BZGAS_MK2 = 78,
    FLASHGRENADE = 79,
    STUNGRENADE = 80,
    CNC_KINETICRAM = 81,
    SCRIPT_MISSILE_LARGE = 82,
    SUBMARINE_BIG = 83,
    EMPLAUNCHER_EMP = 84
}

Config.EnableInputDialog = true -- Enable inputDialog with ox_lib ?
Config.Commands = 'duarmemek' -- If Config.EnableInputDialog = false (Commands = /duarmemek [ID] [ExplosionTag])

Config.Translate = {
    ['id'] = {
        dialog_title = 'Duar Memek',
        input_id = 'ID Pemain',
        des_input_id = 'Masukkan ID Pemain',
        input_select = 'Jenis Ledakan',
        des_input_select = 'Pilih jenis ledakan',
        invalid_expl_type = 'Jenis ledakan tidak valid',
        player_not_found = 'Pemain tidak ditemukan',
        invalid_id_player = 'ID pemain tidak valid',
    },
    ['en'] = {
        dialog_title = 'Duar Memek',
        input_id = 'Player ID',
        des_input_id = 'Enter Player ID',
        input_select = 'Type Explosion',
        des_input_select = 'Select Type Explosion',
        invalid_expl_type = 'Invalid explosion type',
        player_not_found = 'Player not found',
        invalid_id_player = 'Invalid player ID',
    }
}

Custom Notification

If you want to change the notification with your notification, you can open the client/custom.lua folder

RegisterNetEvent('gusti-duarmemek:Notify')
AddEventHandler('gusti-duarmemek:Notify', function(_type, text)
    exports.ox_lib:notify({
        title = 'Duar Memek',
        description = text,
        position = 'top',
        style = {
            borderRadius = 10,
        },
        type = _type
    })
end)

Last updated