Skip to content

daiguel/interactions

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

before we begin special thanks to overextended team this would'nt be possible without them

INTERACTIONS

this is my first ressource, hope you guys will enjoy it :)

PREVIEW

RASMON

alt text

INSTALLATION

Drag and drop. You also need to have :

ITEMS

to work correctly you need to add this items to ox_inventory

	['handcuffs'] = {
		label = 'handcuffs',
		weight = 500,
		stack = false,
		consume = 0,
			client = {
			anim = { dict = 'mp_prison_break', clip = 'handcuffed' },
				usetime = 3500,
			}
	},

	['ziptie'] = {
		label = 'ziptie',
		weight = 500,
		stack = true,
		client = {
			anim = { dict = 'mp_prison_break', clip = 'handcuffed' },
			usetime = 6500
		}
	},
	
	['idcard'] = {
		label = 'id card',
		weight = 0,
		stack = false,
		close = true,
		consume = 0,
		client = {
			export = 'interactions.idcard'
		},
		buttons = {
			{
				label = 'VIEW ID CARD',
				action = function (slot)
					local idcards = exports.ox_inventory:Search('slots', 'idcard')
					for _, v in pairs(idcards) do
						if v.slot == slot  then 
							TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), nil, v.metadata)
						end
					end
				end
			}
		}

	},

	['drivers_license'] = {
		label = 'driver license',
		weight = 0,
		stack = false,
		close = true,
		consume = 0,
		client = {
			export = 'interactions.drivers_license'
		},
		buttons = {
			{
				label = 'VIEW DRIVER LICENSE',
				action = function (slot)
					local idcards = exports.ox_inventory:Search('slots', 'drivers_license')
					for _, v in pairs(idcards) do
						if v.slot == slot  then 
							TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), "driver", v.metadata)
						end
					end
				end
			}
		}

	},

	['farmlicense'] = {
		label = 'weapon license',
		weight = 0,
		stack = false,
		close = true,
		consume = 0,
		client = {
			export = 'interactions.farmlicense'
		},
		buttons = {
			{
				label = 'VIEW WEAPON LICENSE',
				action = function (slot)
					local idcards = exports.ox_inventory:Search('slots', 'farmlicense')
					for _, v in pairs(idcards) do
						if v.slot == slot  then 
							TriggerServerEvent('jsfour-idcard:open', GetPlayerServerId(PlayerId()), "weapon", v.metadata)
						end
					end
				end
			}
		}

	},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages