Skip to content

Mono-94/mono_carkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MONO CARKEYS

❗ Dependencies

🔩 Exports / Events

Client / Server

  • Set Vehicle Doors Status
    Entity(VehicleEntity).state.MonoCarKeys = doorstatus
  • None = 0,
  • Locked = 2,
  • LockedForPlayer = 3,
  • StickPlayerInside = 4, -- Doesn't allow players to exit the vehicle with the exit vehicle key.
  • CanBeBrokenInto = 7, -- Can be broken into the car. If the glass is broken, the value will be set to 1
  • CanBeBrokenIntoPersist = 8, -- Can be broken into persist
  • CannotBeTriedToEnter = 10, -- Cannot be tried to enter (Nothing happens when you press the vehicle enter key).

Client

  • Give or Remove Keys
--  actio = 'add' or 'revome'
    exports.mono_carkeys:ClientInventoryKeys(action, plate) 
  • Get Player Key
    local havekey, entity, inCar, ped = exports.mono_carkeys:GetPlayerKey()
    --  return havekey, entity, inCar, ped 

Server

  • Give or Remove Keys
    local source = source -- Source Player 
    local action = 'add' --  'add' or 'revome'
    exports.mono_carkeys:InventoryKeys(action, { plate = plate, player = source})

📦 Item

  • carkeys
    ['carkeys']  = {
		label = 'Car Keys',
		weight = 10,
		stack = true,
	},

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages