gearConfig

Guide to config files

config.lua

-- Location: hype_phone/config.lua

Config.language = 'en'
Config.ESXobjectEvent = "esx:getSharedObject" 
Config.ItemName = 'phone'
Config.PhoneControl = 'F1'
Config.PhoneProp = 'prop_phone_ing_03'
Config.RemovePhoneInWater = false
Config.AutoGenerateNumber = true
Config.HasBankAccount = false

Config.CanUsePhone = function()
    local ped = PlayerPedId()
    if not LocalPlayer.state.isHandcuffed and not LocalPlayer.state.dead and not IsEntityInWater(ped) then
        return true
    else
        return false
    end
end

Config.SetVoipChannel = function(id)
    exports["pma-voice"]:SetCallChannel(id)
end

Config.RemoveVoipChannel = function()
    exports["pma-voice"]:SetCallChannel(0)
end

Config.ShowNotification = function(msg)
    TriggerEvent('esx:showNotification', msg)
end


Config.Weathers = {
    ["EXTRASUNNY"] = {label = STRING.Translate("WEATHER_EXTRASUNNY"), degrees = 28 },
    ["CLEAR"] = {label =  STRING.Translate("WEATHER_CLEAR"), degrees = 19 },
    ["NEUTRAL"] = {label = STRING.Translate("WEATHER_NEUTRAL"), degrees = 16 },
    ["SMOG"] = {label = STRING.Translate("WEATHER_SMOG"), degrees = 15 },
    ["FOGGY"] = {label = STRING.Translate("WEATHER_FOGGY"), degrees = 14 },
    ["OVERCAST"] = {label = STRING.Translate("WEATHER_OVERCAST"), degrees = 15 },
    ["CLOUDS"] = {label = STRING.Translate("WEATHER_CLOUDS"), degrees = 16 },
    ["CLEARING"] = {label = STRING.Translate("WEATHER_CLEARING"), degrees = 18 },
    ["RAIN"] = {label = STRING.Translate("WEATHER_RAIN"), degrees = 16 },
    ["THUNDER"] = {label = STRING.Translate("WEATHER_THUNDER"), degrees = 12 },
    ["SNOW"] = {label = STRING.Translate("WEATHER_SNOW"), degrees = 5 },
    ["BLIZZARD"] = {label = STRING.Translate("WEATHER_BLIZZARD"), degrees = 0 },
    ["SNOWLIGHT"] = {label = STRING.Translate("WEATHER_SNOWLIGHT"), degrees = -2 },
    ["XMAS"] = {label = STRING.Translate("WEATHER_XMAS"), degrees = -3 },
    ["HALLOWEEN"] = {label = STRING.Translate("WEATHER_HALLOWEEN"), degrees = 15 },
}
name
value
description

Here you can define available language

You can edit your ESX framework shared object event

Phone item name

Control to use your phone

Phone prop model

If it's true and player is in water, his phone will be removed

Automatic generate phone number if player doesn't have phone number (if u use some SIM cards etc. you can disable it here)

Change it on true if you use some bank account numbers (get in function in hype_phone/server/editable.lua)

You can add here arguments which are checks when player trying to open phone

Here you can edit function to set voip channel from your voice channel

Here you can edit function to remove voip channel from your voice channel

You can edit this function if you have your own notifications

You can change display name of weather

config.json

In this file u can change some strings, images and translation

Last updated