Giter Site home page Giter Site logo

esx-qalle-jail's Introduction

Hi, I'm qalle

  • ๐Ÿซ I am a Computer Science and Software Engineer student at Chalmers Institute of Technology in Gothenburg.
  • FiveM Enthusiast, with hundreds of resources made, both public and private.
  • ๐Ÿง‘โ€๐Ÿ’ป I love using Software as a solution for every Problem.
  • ๐Ÿ’ป I am a fluent programmer in Lua, C#, TypeScript and Python.
  • ๐Ÿง‘โ€๐ŸŽ“ Iโ€™m currently learning Computer Science and how to use Assembly Language.
  • ๐Ÿค“ Always learning new things.

Statistics

esx-qalle-jail's People

Contributors

krille123 avatar petrisgr avatar qalle-git avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esx-qalle-jail's Issues

Spawning at Hospital

Need a fix for people being sent to hospital as soon as they have been jailed. they get sent to the hospital even with prison clothes on

console error

everytime a player enters the game im getting a spam message in the console, and i am wondering how i can fix this, the resource seems to work just fine its just spamming the console. here is the message:

Error running call reference function for resource esx-qalle-jail: citizen:/scripting/lua/scheduler.lua:403: server/server.lua:125: attempt to compare number with nil
stack traceback:
server/server.lua:125: in upvalue 'ref'
citizen:/scripting/lua/scheduler.lua:389: in function citizen:/scripting/lua/scheduler.lua:388
[C]: in function 'xpcall'
citizen:/scripting/lua/scheduler.lua:388: in function citizen:/scripting/lua/scheduler.lua:387
stack traceback:
[C]: in function 'error'
citizen:/scripting/lua/scheduler.lua:403: in function citizen:/scripting/lua/scheduler.lua:372
Error: Unhandled error: Error: BUFFER_SHORTAGE
Error: BUFFER_SHORTAGE
at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766)
at h (citizen:/scripting/v8/msgpack.js:29:15761)
at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908)
at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972)
at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076)
at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097)
at unpack (citizen:/scripting/v8/main.js:20:33)
at citizen:/scripting/v8/main.js:51:11
at setImmediate (mysql-async.js:4962:9)
at Object.callback (citizen:/scripting/v8/timer.js:56:6)

Not going to jail?

random people are not going ot jail but back to where they was 10 min ago. their cloths are changing and everything and has the jail timer

Multiple jobs

How do i add multiple jobs to the /jail command cuz i have a dutch sevrer and i want to add more jobs that can jail i only have now police but i want to add kmar and belgium police is it something like this?

if xPlayer["job"]["name"] == "police" or xPlayer["job"]["name"] == kmar then

Players can go anywehre

So my issue I find is when people are sent to jail they can get out of the jail by spawning to the security office, then going to the door again and spawning at boiling broke which is the outside of the jail - Is it possible to do it so they can't go to the security if they are in jail and can only go to the warehouse and to the cells? then anyone else that is visiting can only go to to the visitors place, and doors to the security office is locked unless police.

How to add more jailpos

Hello !

I would like to modify the script to make a custody menu for the police.
Instead of being in prison, they will be sent to the cells of the police station.

However I cannot make sure to add different cells when sending in jail via the function

I would like if possible that we can choose the number of the cell in which we want to place the players,
after the reason request.

Thx for help !

People stuck in jail

people are getting stuck in the jail and they can't leave after there sentence. and people entering the jail are getting stuck aswell.

Error running call reference function for resource esx-qalle-jail

Hey,

I'm getting this error:

Error running call reference function for resource esx-qalle-jail: citizen:/scripting/lua/scheduler.lua:405: @esx-qalle-jail/server/server.lua:173: attempt to compare number with nil stack traceback: @esx-qalle-jail/server/server.lua:173: in upvalue 'ref' citizen:/scripting/lua/scheduler.lua:391: in function <citizen:/scripting/lua/scheduler.lua:390> [C]: in function 'xpcall' citizen:/scripting/lua/scheduler.lua:390: in function <citizen:/scripting/lua/scheduler.lua:389> stack traceback: [C]: in function 'error' citizen:/scripting/lua/scheduler.lua:405: in function <citizen:/scripting/lua/scheduler.lua:374> Error: Unhandled error in timer: Error: BUFFER_SHORTAGE Error: BUFFER_SHORTAGE at n.e [as reserve] (citizen:/scripting/v8/msgpack.js:29:12766) at h (citizen:/scripting/v8/msgpack.js:29:15761) at n.r [as decode] (citizen:/scripting/v8/msgpack.js:29:13908) at n.fetch (citizen:/scripting/v8/msgpack.js:29:6972) at n.u [as read] (citizen:/scripting/v8/msgpack.js:29:12076) at Object.n [as decode] (citizen:/scripting/v8/msgpack.js:29:7097) at unpack (citizen:/scripting/v8/main.js:20:33) at citizen:/scripting/v8/main.js:51:20 at setImmediate (mysql-async.js:4962:9) at Object.callback (citizen:/scripting/v8/timer.js:96:21)

Any fixes?

Thanks.

Script not loading the right clothes

So i've set my outfits for both male and female as followed:

if GetHashKey(GetEntityModel(PlayerPedId())) == Male then
local clothesSkin = {
['tshirt_1'] = 14, ['tshirt_2'] = 0,
['torso_1'] = 0, ['torso_2'] = 0,
['arms'] = 0,
['pants_1'] = 7, ['pants_2'] = 15,
['shoes_1'] = 7, ['shoes_2'] = 0,
}
TriggerEvent('skinchanger:loadClothes', skin, clothesSkin)

	else 
		local clothesSkin = {
			['tshirt_1'] = 15, ['tshirt_2'] = 0,
			['torso_1'] = 347, ['torso_2'] = 0,
			['arms'] = 0,
			['pants_1'] = 3, ['pants_2'] = 15,
			['shoes_1'] = 1, ['shoes_2'] = 0,
		}

Female outfit works fine but the male outfit won't load the right shoes and pants. I have no errors and just don't get why it's not working properly if someone could help :)

Nil Value and GetsharedObject needs update

Doesn't work, using the old Getsharedobject function and gives this error:
SCRIPT ERROR: @esx-qalle-jail-master/server/server.lua:151: attempt to index a nil value (global 'ESX')

Security desk not showing up

Screenshot_4
As you can see from the screenshot, the security desk doesn't show up, and after you TP through the door, it shows as 'open' but you can see the wall behind it. Any way to get this to stop showing like this?

jail timer goes twice as fast

Any known fixes for the bug when people reconnect/relog the jail timer goes twice as fast. So when you jail people for 60 months and they relog they are only 30 minutes in jail instead the full 60.

Console error

image
Hi i got this error and it wont go away and i have added
ESX = nil

TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

at the top what to do?

Players Killable

When players are sent to jail they are not god moded so people can kill them in jail. Is there anyway to fix that?

Some things that could be better to be honest.

Check that you are a cop when opening the menu right now everyone can open that up.

Check if you are in jail right now you can work out the front door, if you want to, and when you are in prisson you should not be able to go to security to be honest.

And if you are a visitor you should not be able to go in to the jail area, only in to the visitors room.

Bugs found so fare.

  1. On job change it dos not update, easy to fix.
  2. It often happens it fails to removed the package on the floor.
  3. It often happens it fails to put the package in hands after packing.

Script Error : Attempt to index a nil value (field '?')

Hello, i'm actually dealing with an script error showing up on my console. Anybody knows how to fix this?

[script:esx-qalle-jai] > SCRIPT ERROR: @esx-qalle-jail/server/server.lua:172: attempt to index a nil value (field '?')
[script:esx-qalle-jai] > ref (@esx-qalle-jail/server/server.lua:172)
[script:esx-qalle-jai] > (@mysql-async/mysql-async.js:14959)

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.