Giter Club home page Giter Club logo

interactions's Introduction

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
			}
		}

	},

interactions's People

Contributors

daiguel avatar

Stargazers

lush0n3 avatar Dorian Rochette avatar

Watchers

 avatar

interactions's Issues

Issue with collision

There is one issue about collision between the player and vehicle when you are escorting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.