Home » Science & Technology » How to use FiveM's Built-In KVP Database (FiveM Lua Scripting Master Series)

How to use FiveM's Built-In KVP Database (FiveM Lua Scripting Master Series)

Written By CharlesHacks on Thursday, Apr 06, 2023 | 06:00 PM

 
Welcome back to another episode of CharlesHacks' Master Series! In today's video, we'll be diving into FiveM's built-in key-value pair (KVP) database, which offers a lightweight and simple way to store and retrieve data on your server. Join me as we explore the advantages, use cases, and limitations of this storage solution, and learn how to implement KVP storage in your FiveM server. Let's level up your development skills together! DISCORD: https://discord.gg/charleshacks TWITTER: https://twitter.com/charleshacks CHAPTERS: 00:00 Introduction 01:21 What are Key-Value Stores? 01:56 Get and Set Natives 03:39 Using the Get and Set Natives 05:34 Delete Native 05:45 Using the Delete Native 06:18 Find Natives 07:53 Using the Find Natives 10:02 Important Gotchas 11:42 Conclusion