BadgerTrustSystem+

A script by OfficialBadger

No reviews yet.
BadgerTrustSystem+ main image

Full Description

BadgerTrustSystem+

About

BadgerTrustSystem+ is the most advanced trust system for the FiveM platform. Users can take control of their personal vehicles, peds, and/or weapons in-game that they purchased in the server’s store. Give your users a better sense of security in which their personals cannot be used by others unless they give them permission. Use BadgerTrustSystem+

:smile:

Config File

Config = {
	Debug = true,
	Webhook_URL = '', -- Discord Webhook URL
	Checks = 10000, -- How many MS should we check if a user is using a blacklisted. 1000 = 1 second
	Server_Name = '^1BadgerTrustSystem^6+',

	Allowed_Skin_Hash = 'a_m_y_skater_01',
	Delete_Vehicles_On_No_Access = true,
	Vehicle_Access_Only_Driver = true,

	-- COMING SOON
	Default_Theme = {
		Background_Repeat = 'BLACK', -- Options: BLACK, WHITE, ORANGE
		Background_Color = '#ffffff', -- Any HEX color you want
	},
}

Language File

Language = {
    SUCCESS_REGISTER_USER = "^2Success: ^3You have been registered into the ^1BadgerTrustSystem^6+ ^3system.",
    FAILURE_REGISTER_USER = "^1ERR: ^3You could not be registered into the ^1BadgerTrustSystem^6+ ^3system because of the following error: ^5{MSG}",
    PLAYER_NOT_ONLINE_ERR = "^1ERR: ^3That player is not online...",
    USER_DOES_NOT_EXIST = "^1ERR: ^3The user ID for ^6[{USER_ID}] {USER_NAME} ^3does not exist...",

    CLEAR_VEH_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/clearVeh <spawncode>",
    CLEAR_PED_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/clearPed <spawncode>",
    CLEAR_WEAPON_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/clearWeapon <spawncode>",

    SET_VEH_OWNER_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/setVehOwner <id> <spawncode>",
    SET_PED_OWNER_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/setPedOwner <id> <spawncode>",
    SET_WEAPON_OWNER_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/setWeaponOwner <id> <spawncode>",

    DO_NOT_OWN_VEH_ERR = "^1ERR: ^3You do not own this vehicle...",
    DO_NOT_OWN_PED_ERR = "^1ERR: ^3You do not own this ped...",
    DO_NOT_OWN_WEAPON_ERR = "^1ERR: ^3You do not own this weapon...",

    TRUST_VEH_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/trustVeh <id> <spawncode>",
    TRUST_WEAPON_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/trustWeapon <id> <spawncode>",
    TRUST_PED_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/trustPed <id> <spawncode>",

    REVOKE_VEH_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/revokeVeh <id> <spawncode>",
    OFFLINE_REVOKE_VEH_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/oRevokeVeh <uid> <spawncode>",
    REVOKE_PED_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/revokePed <id> <spawncode>",
    OFFLINE_REVOKE_PED_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/oRevokePed <uid> <spawncode>",
    REVOKE_WEAPON_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/revokeWeapon <id> <spawncode>",
    OFFLINE_REVOKE_WEAPON_ERR_ARGS = "^1ERR: ^3Did not provide proper arguments. ^2Correct usage: ^6/oRevokePed <uid> <spawncode>",

    VEH_OWNER_CLEARED = "^3The vehicle ^4{SPAWN_NAME} ^3has been cleared of it's owner successfully.",
    PED_OWNER_CLEARED = "^3The ped ^4{SPAWN_NAME} ^3has been cleared of it's owner successfully.",
    WEAPON_OWNER_CLEARED = "^3The weapon ^4{SPAWN_NAME} ^3has been cleared of it's owner successfully.",

    VEH_TRUSTS_CLEARED = "^3The vehicle ^4{SPAWN_NAME} ^3has been cleared of it's trusts successfully.",
    PED_TRUSTS_CLEARED = "^3The ped ^4{SPAWN_NAME} ^3has been cleared of it's trusts successfully.",
    WEAPON_TRUSTS_CLEARED = "^3The weapon ^4{SPAWN_NAME} ^3has been cleared of it's trusts successfully.",

    VEH_TRUST_CLEAR_ERR = "^1ERR: ^3The vehicle trusts of ^4{SPAWN_NAME} ^3have not been cleared...",
    PED_TRUST_CLEAR_ERR = "^1ERR: ^3The ped trusts of ^4{SPAWN_NAME} ^3have not been cleared...",
    WEAPON_TRUST_CLEAR_ERR = "^1ERR: ^3The weapon trusts of ^4{SPAWN_NAME} ^3have not been cleared...",

    VEH_OWNER_CLEAR_ERR = "^1ERR: ^3The vehicle ^4{SPAWN_NAME} ^3has not been cleared of it's owner...",
    PED_OWNER_CLEAR_ERR = "^1ERR: ^3The ped ^4{SPAWN_NAME} ^3has not been cleared of it's owner...",
    WEAPON_OWNER_CLEAR_ERR = "^1ERR: ^3The weapon ^4{SPAWN_NAME} ^3has not been cleared of it's owner...",

    SET_VEH_OWNER = "^3The vehicle ^4{SPAWN_NAME} ^3has been set owner to ^4[{USER_ID}] {USER_NAME} ^3successfully.",
    SET_PED_OWNER = "^3The ped ^4{SPAWN_NAME} ^3has been set owner to ^4[{USER_ID}] {USER_NAME} ^3successfully.",
    SET_WEAPON_OWNER = "^3The weapon ^4{SPAWN_NAME} ^3has been set owner to ^4[{USER_ID}] {USER_NAME} ^3successfully.",

    SET_VEH_OWNER_ERR = "^1ERR: ^3The vehicle ^4{SPAWN_NAME} ^3was not able to be set owner to ^4[{USER_ID}] {USER_NAME} ^3.",
    SET_PED_OWNER_ERR = "^1ERR: ^3The ped ^4{SPAWN_NAME} ^3was not able to be set owner to ^4[{USER_ID}] {USER_NAME}^3.",
    SET_WEAPON_OWNER_ERR = "^1ERR: ^3The weapon ^4{SPAWN_NAME} ^3was not able to be set owner to ^4[{USER_ID}] {USER_NAME}^3.",

    VEH_TRUST_USER = "^3The vehicle ^4{SPAWN_NAME} ^3has been trusted to use by ^4[{USER_ID}] {USER_NAME} ^3successfully.",
    PED_TRUST_USER = "^3The ped ^4{SPAWN_NAME} ^3has been trusted to use by ^4[{USER_ID}] {USER_NAME} ^3successfully.",
    WEAPON_TRUST_USER = "^3The weapon ^4{SPAWN_NAME} ^3has been trusted to use by ^4[{USER_ID}] {USER_NAME} ^3successfully.",

    VEH_TRUST_USER_ERR = "^1ERR: ^3The vehicle ^4{SPAWN_NAME} ^3was not able to be trusted to ^4[{USER_ID}] {USER_NAME}^3.",
    PED_TRUST_USER_ERR = "^1ERR: ^3The ped ^4{SPAWN_NAME} ^3was not able to be trusted to ^4[{USER_ID}] {USER_NAME}^3.",
    WEAPON_TRUST_USER_ERR = "^1ERR: ^3The weapon ^4{SPAWN_NAME} ^3was not able to be trusted to ^4[{USER_ID}] {USER_NAME}^3.",

    VEH_TRUST_REVOKE = "^3The vehicle ^4{SPAWN_NAME} ^3trust has been revoked from ^4[{USER_ID}] {USER_NAME} ^3successfully.",
    PED_TRUST_REVOKE = "^3The ped ^4{SPAWN_NAME} ^3trust has been revoked from ^4[{USER_ID}] {USER_NAME} ^3successfully.",
    WEAPON_TRUST_REVOKE = "^3The weapon ^4{SPAWN_NAME} ^3trust has been revoked from ^4[{USER_ID}] {USER_NAME} ^3successfully.",

    OFFLINE_VEH_TRUST_REVOKE = "^3The vehicle ^4{SPAWN_NAME} ^3trust has been revoked from the user with UID ^4{UID} ^3successfully.",
    OFFLINE_PED_TRUST_REVOKE = "^3The ped ^4{SPAWN_NAME} ^3trust has been revoked from the user with UID ^4{UID} ^3successfully.",
    OFFLINE_WEAPON_TRUST_REVOKE = "^3The weapon ^4{SPAWN_NAME} ^3trust has been revoked from the user with UID ^4{UID} ^3successfully.",

    VEH_TRUST_REVOKE_ERR = "^1ERR: ^3The vehicle ^4{SPAWN_NAME} ^3trust was not able to be revoked from ^4[{USER_ID}] {USER_NAME}^3.",
    PED_TRUST_REVOKE_ERR = "^1ERR: ^3The ped ^4{SPAWN_NAME} ^3trust was not able to be revoked from ^4[{USER_ID}] {USER_NAME}^3.",
    WEAPON_TRUST_REVOKE_ERR = "^1ERR: ^3The weapon ^4{SPAWN_NAME} ^3trust was not able to be revoked from ^4[{USER_ID}] {USER_NAME}^3.",

    OFFLINE_VEH_TRUST_REVOKE_ERR = "^1ERR: ^3The vehicle ^4{SPAWN_NAME} ^3trust was not able to be revoked from the user with UID: ^4{UID}^3.",
    OFFLINE_PED_TRUST_REVOKE_ERR = "^1ERR: ^3The ped ^4{SPAWN_NAME} ^3trust was not able to be revoked from the user with UID: ^4{UID}^3.",
    OFFLINE_WEAPON_TRUST_REVOKE_ERR = "^1ERR: ^3The weapon ^4{SPAWN_NAME} ^3trust was not able to be revoked from the user with UID: ^4{UID}^3.",

    VEH_ALREADY_OWNED_ERR = "^1ERR: ^3The vehicle ^4{SPAWN_NAME} ^3is already owned by a user...",
    PED_ALREADY_OWNED_ERR = "^1ERR: ^3The ped ^4{SPAWN_NAME} ^3is already owned by a user...",
    WEAPON_ALREADY_OWNED_ERR = "^1ERR: ^3The weapon ^4{SPAWN_NAME} ^3is already owned by a user...",

    VEH_NO_ACCESS = "^1ERR: ^3You do not have access to the vehicle ^4{SPAWN_NAME}^3...",
    PED_NO_ACCESS = "^1ERR: ^3You do not have access to the ped ^4{SPAWN_NAME}^3...",
    WEAPON_NO_ACCESS = "^1ERR: ^3You do not have access to the weapon ^4{SPAWN_NAME}^3...",

    TRUSTED_VEHS_LIST_PREFIX = "^3Trusted Vehicles:",
    OWNED_VEHS_LIST_PREFIX = "^3Owned Vehicles:",
    VEH_LIST_FORMAT = "^5[^1{ID}^5] ^1{SPAWNCODE}",
    TRUSTED_PEDS_LIST_PREFIX = "^3Trusted Peds:",
    OWNED_PEDS_LIST_PREFIX = "^3Owned Peds:",
    PED_LIST_FORMAT = "^5[^1{ID}^5] ^1{SPAWNCODE}",
    TRUSTED_WEAPONS_LIST_PREFIX = "^3Trusted Weapons:",
    OWNED_WEAPONS_LIST_PREFIX = "^3Owned Weapons:",
    WEAPON_LIST_FORMAT = "^5[^1{ID}^5] ^1{SPAWNCODE}",

    TRUSTED_USERS_LIST_PREFIX = "^1{SPAWNCODE}^3:",
    TRUSTED_USERS_LIST_FORMAT = "^5[^1{ID}^5] ^1{LAST_KNOWN_USERNAME}"
}

Commands

/trusts - List all the trusts you have given out /trust <spawncode> List all the trusts you have given out to the vehicle and/or ped and/or weapon with the specified spawncode

/vehicles - List all the vehicles you have access to utilize /peds - List all the peds you have access to utilize

/weapons - List all the weapons you have access to utilize

/trustVeh <id> <spawncode> - Trust the vehicle to the provided server ID for the vehicle spawncode

/trustPed <id> <spawncode> - Trust the ped to the provided server ID for the ped spawncode

/trustWeapon <id> <spawncode> - Trust the weapon to the provided server ID for the weapon spawncode

/revokeVeh <id> <spawncode> - Revoke the trust of the vehicle spawncode from the provided server ID

/oRevokeVeh <uid> <spawncode> - Revoke the trust of the vehicle spawncode from the provided UID (can be obtained from /trusts command)

/revokePed <id> <spawncode> - Revoke the trust of the ped spawncode from the provided server ID

/oRevokePed <uid> <spawncode> - Revoke the trust of the ped spawncode from the provided UID (can be obtained from /trusts command)

/revokeWeapon <id> <spawncode> - Revoke the trust of the weapon spawncode from the provided server ID

/oRevokeWeapon <uid> <spawncode> - Revoke the trust of the weapon spawncode from the provided UID (can be obtained from /trusts command)

/clearVeh <spawncode> - Clear the vehicle spawncode of any ownership and trusts

/clearPed <spawncode> - Clear the ped spawncode of any ownership and trusts

/clearWeapon <spawncode> - Clear the weapon spawncode of any ownership and trusts

/setVehOwner <id> <spawncode> - Set the vehicle owner of the vehicle spawncode provided to the server ID provided’s user

/setPedOwner <id> <spawncode> - Set the ped owner of the ped spawncode provided to the server ID provided’s user

/setWeaponOwner <id> <spawncode> - Set the weapon owner of the weapon spawncode provided to the server ID provided’s user

Permissions

BadgerTrustSystem.Owner.Clear => Permission to use the clear commands to clear ownership of a vehicle, ped, or weapon.

BadgerTrustSystem.Owner.Set => Permission to use the owner commands to set ownership of a vehicle, ped, or weapon.

Requirements

Purchase

https://store.collectivem.org/category/badgertrustsystem

Code is accessible No
Subscription-based Yes
Lines (approximately) 4000+
Requirements oxmysql, ox_lib
Support Yes