Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send player to jail #71

Open
zakleedell1996 opened this issue Dec 4, 2023 · 1 comment
Open

Can't send player to jail #71

zakleedell1996 opened this issue Dec 4, 2023 · 1 comment
Labels
bug Something isn't working need repro This bug report needs confirmation

Comments

@zakleedell1996
Copy link

zakleedell1996 commented Dec 4, 2023

Summary

so I am trying send a player to jail but when I send them it tells me there time how long the got but they don't go to jail also jobs don't work around the prison

Reproduction

I did nothing I just try sending a player to jail

Expected behaviour

i thought the player would go straight to jail after being sent be police officer

Actual behaviour

nothing

Additional context

image

Last Updated

today

Custom Resources

no

Resource Rename

no

@zakleedell1996 zakleedell1996 added bug Something isn't working need repro This bug report needs confirmation labels Dec 4, 2023
@qbox-duck qbox-duck bot added this to Issues Dec 4, 2023
@github-project-automation github-project-automation bot moved this to Todo in Issues Dec 4, 2023
@dusan01 dusan01 changed the title qbx-policejob Can't send player to jail Dec 16, 2023
@ZenVee
Copy link

ZenVee commented Feb 20, 2024

Summary

so I am trying send a player to jail but when I send them it tells me there time how long the got but they don't go to jail also jobs don't work around the prison

Reproduction

I did nothing I just try sending a player to jail

Expected behaviour

i thought the player would go straight to jail after being sent be police officer

Actual behaviour

nothing

Additional context

image

Last Updated

today

Custom Resources

no

Resource Rename

no

In the server event police:server:JailPlayer change the following line:
TriggerClientEvent('police:client:SendToJail', otherPlayer.PlayerData.source, time)
to
exports.qbx_prison:JailPlayer(otherPlayer.PlayerData.source, time)

You can also remove the exports.qbx_core:Notify line as the export notifies the player as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need repro This bug report needs confirmation
Projects
Status: Todo
Development

No branches or pull requests

2 participants