framework

When setting up the script for the first time, don’t forget to configure the most important part: selecting the framework. Currently, we only support vRP. However, if you’re a developer, you can add support for other frameworks by following the standard established in the script’s structure.

framework.isPlayerAlive() -- return if player is alive
framework.request() -- return a boolean value if player accept request ( need a promise )
framework.giveInventoryItem() -- give inventory item to player
framework.tryGetInventoryItem() -- consume inventory item player ( need a boolean value )
framework.getItemName() -- return a title name item
framework.sendNotify() -- send notify to player ( need a configuration framework.NOTIFY_TYPES )
framework.getUsersPermission() -- return table<number,number> users by permission example 
return { [1] = 2, [2] = 339, [3] = 923, [4] = 10 }
framework.getUserId() -- return user_id
framework.getUserSource() --return a source using user_id
framework.getUserName() -- using user_id to return string or false
framework.handleDisableAllKeys() -- activates or deactivates the player's keyboard for use in animations

Use this when player disconnect player, this function return outside coords house.

exports('disconnectedPlayerRobbery', function(user_id) -- return vector4 or false

Last updated