💍Envi-Forever-Rings
Envi-Forever-Rings Official Documentation
Preview
Prerequisites
A working FiveM Server.
Basic Understanding of FiveM server setup and resource management.
An up-to-date version of ox_lib
Config Preview
Make sure to set your ped component numbers per model of mp_f_freemode_01 and mp_m_freemode_01. These should be in your clothing. script when you add the envi-forever-rings-addon clothing. They will be found under decals. We do this to allow for all clothing to be used and have this as an addition.
Config = {}
Config.CertificateUI = true -- if false, will use ox_lib alertDialog instead
Config.ShowCertificateDistance = 2.0 -- distance to show certificate UI when using item to show to nearby players - (set to 0.01 to show to the player using the item only)
Config.EngravingCost = 5000
Config.SpawnedRingsAreFake = true -- if true, rings that are not obtained from the Forever Rings shop will be 'FAKE' and will NOT come with a certificate
Config.Shops = {
[1] = {
label = 'Forever Rings',
pedModel = 'A_F_Y_BevHills_04',
spawnRadius = 20.0,
coords = vec4(-737.7367, 253.9889, 77.3329, 117.2713),
anim = {
scenario = 'WORLD_HUMAN_STAND_IMPATIENT',
-- or
-- dict = 'anim@heists@box_carry@',
-- clip = 'idle',
},
ownable = {
enabled = true,
price = 10000000,
managementLocation = vec3(-736.6005, 257.2536, 77.3329),
percentage = 10, -- Owner receives 10% of sales into management fund
canSell = true,
sellPercentage = 50, -- Get back 50% of purchase price when selling
canTransfer = true,
}
},
}
Config.Rings = {
['Male'] = {
[1] = {
name = 'Big Diamond',
component = 10,
model = 174,
texture = 0,
cost = 500000,
image = 'big-diamond-male',
},
[2] = {
name = 'Infinity',
component = 10,
model = 175,
texture = 0,
cost = 250000,
image = 'infinity-male',
},
[3] = {
name = 'Pearl',
component = 10,
model = 176,
texture = 0,
cost = 100000,
image = 'pearl-male',
},
[4] = {
name = 'Simple Band',
component = 10,
model = 177,
texture = 0,
cost = 10000,
image = 'simple-band-male',
},
[5] = {
name = 'Simple Diamond',
component = 10,
model = 178,
texture = 0,
cost = 50000,
image = 'simple-diamond-male',
},
[6] = {
name = 'Fancy Diamond',
component = 10,
model = 179,
texture = 0,
cost = 350000,
image = 'fancy-diamond-male',
},
[7] = {
name = 'Blood',
component = 10,
model = 180,
texture = 0,
cost = 200000,
image = 'blood-male',
},
[8] = {
name = 'Labradorite',
component = 10,
model = 181,
texture = 0,
cost = 150000,
image = 'labradorite-male',
},
[9] = {
name = 'Skull',
component = 10,
model = 182,
texture = 0,
cost = 100000,
image = 'skull-male',
},
[10] = {
name = 'Heart',
component = 10,
model = 183,
texture = 0,
cost = 200000,
image = 'heart-male',
},
[11] = {
name = 'Eternity',
component = 10,
model = 184,
texture = 0,
cost = 400000,
image = 'eternity-male',
},
},
['Female'] = {
[1] = {
name = 'Big Diamond',
component = 10,
model = 191,
texture = 0,
cost = 500000,
image = 'big-diamond-female',
},
[2] = {
name = 'Infinity',
component = 10,
model = 192,
texture = 0,
cost = 250000,
image = 'infinity-female',
},
[3] = {
name = 'Pearl',
component = 10,
model = 193,
texture = 0,
cost = 100000,
image = 'pearl-female',
},
[4] = {
name = 'Simple Band',
component = 10,
model = 194,
texture = 0,
cost = 10000,
image = 'simple-band-female',
},
[5] = {
name = 'Simple Diamond',
component = 10,
model = 195,
texture = 0,
cost = 50000,
image = 'simple-diamond-female',
},
[6] = {
name = 'Fancy Diamond',
component = 10,
model = 196,
texture = 0,
cost = 350000,
image = 'fancy-diamond-female',
},
[7] = {
name = 'Blood',
component = 10,
model = 197,
texture = 0,
cost = 200000,
image = 'blood-female',
},
[8] = {
name = 'Labradorite',
component = 10,
model = 198,
texture = 0,
cost = 150000,
image = 'labradorite-female',
},
[9] = {
name = 'Skull',
component = 10,
model = 199,
texture = 0,
cost = 100000,
image = 'skull-female',
},
[10] = {
name = 'Heart',
component = 10,
model = 200,
texture = 0,
cost = 200000,
image = 'heart-female',
},
[11] = {
name = 'Eternity',
component = 10,
model = 201,
texture = 0,
cost = 400000,
image = 'eternity-female',
},
},
}
Config.MysteryBox = {
enabled = true,
name = 'Mystery Box',
cost = 250000,
image = 'forever_ring',
}
----------------------------------------------------------------------------------------------------------------
Config.Lang = {
['bought'] = 'You have purchased a Forever Ring',
['failed'] = 'You can only purchase a Forever Ring ONCE in a Life-Time!',
['menu_title'] = 'Forever Rings',
['purchase_desc'] = '*Price:* **$%s**',
['engraving_header'] = 'Would you like to engrave a message for **$%s** extra?',
['engraving_desc'] = 'Our **Premium Engraving Service** will add a personalized message to your Forever Ring! This will also include a special note alongside your Certificate of Authenticity.',
['not_enough_money'] = 'You do not have enough money to purchase this!',
['ring_name'] = 'Forever Ring',
['purchase_ring'] = 'Purchase Ring',
['who_for'] = 'Who are you buying this for?',
['special_someone'] = 'Special Someone',
['add_engraving'] = 'Add an engraving?',
['write_message'] = 'Write your special message...',
['payment_header'] = 'How would you like to pay?',
['payment_desc'] = 'Please select **Cash** or **Card**',
['pay_card'] = 'Card',
['pay_cash'] = 'Cash',
['cert_header'] = '# **Forever Ring**',
['cert_title'] = '## ***Certificate of Authenticity***',
['cert_from'] = '**With Love From:**',
['cert_to'] = '**Gifted To:**',
['cert_message'] = '**Message:**',
['cert_date'] = '**Purchased On:**',
['cert_style'] = '**Ring Style:**',
['cert_warning'] = '**PLEASE BE AWARE:**\t\n A Forever Ring is an **extra special** gift that can only be purchased **once** in a lifetime.', -- \t\n = new line
['yes_please'] = 'Yes Please',
['no_thanks'] = 'No Thanks',
['heart'] = '<3',
['opened_mystery'] = 'You opened a mystery Forever Ring!',
['male'] = 'Men\'s Collection',
['female'] = 'Women\'s Collection',
['male_desc'] = 'Browse our new selection of Forever Rings for Men',
['female_desc'] = 'Browse our world-famous Forever Rings for Women',
['choice_desc'] = 'Style: **%s**\n\nPrice: **$%s**\n\nPlease be aware that you can only purchase a Forever Ring ONCE in a Life-Time! \n\n Are you sure you want to proceed?',
['ring_lost'] = 'You lost your Forever Ring!',
['doesnt_fit'] = 'This ring doesn\'t fit you!',
['name_placeholder'] = 'Your Special Someone <3',
['special_offers'] = 'Special Offers',
['special_offers_desc'] = 'Check out our latest Special Offers!',
['shop_management'] = 'Shop Management',
['not_owner'] = 'You are not the owner of this shop',
['funds_available'] = 'Available Funds: $',
['withdraw_funds'] = 'Withdraw Funds',
['sell_shop'] = 'Sell Shop',
['transfer_shop'] = 'Transfer Shop',
['funds_received'] = 'You received $ ',
['withdraw_success'] = 'Successfully withdrew $',
['withdraw_failed'] = 'Failed to withdraw funds',
['shop_sold'] = 'You sold the shop for $',
['shop_purchased'] = 'You purchased the shop for $',
['cannot_afford'] = 'You cannot afford to buy this shop',
['already_own'] = 'You already own a shop',
['purchase'] = 'Purchase Business',
['how_much'] = 'Amount to withdraw',
['sell_desc'] = 'Sell value: $',
['sell_failed'] = 'Failed to sell shop',
}
Inventory Layouts
['forever_ring'] = {
label = 'Forever Ring',
weight = 1000,
close = true,
},
['forever_certificate'] = {
label = 'Forever Ring Certificate',
weight = 1000,
close = true,
},
['forever_ring'] = {['name'] = 'forever_ring', ['label'] = 'Forever Ring', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'forever_ring.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Forever Ring'},
['forever_certificate'] = {['name'] = 'forever_ring_certificate', ['label'] = 'Forever Ring Certificate', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'forever_ring.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'Forever Ring'},
forever_ring = {name = 'forever_ring', label = 'Forever Ring', weight = 1000, type = 'item', image = 'forever_ring.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Forever Ring'},
forever_ring_certificate = {name = 'forever_ring_certificate', label = 'Forever Ring Certificate', weight = 1000, type = 'item', image = 'forever_ring.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Forever Ring'},
forever_ring = {name = 'forever_ring', label = 'Forever Ring', weight = 1000, type = 'item', image = 'forever_ring.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Forever Ring'},
forever_ring_certificate = {name = 'forever_ring_certificate', label = 'Forever Ring Certificate', weight = 1000, type = 'item', image = 'forever_ring.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'Forever Ring'},
Last updated