-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat(client/command): ability to roll down window #97
base: dev
Are you sure you want to change the base?
Conversation
end | ||
|
||
local seat = ESX.PlayerData.seat | ||
local window = seatsToWindow[seat - 1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local window = seatsToWindow[seat + 1]
Or just fix the index of the seatsToWindow table.
Driver seat is -1, while driver window is 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, thats why theres a conversion table.
Seat is index, window is value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Mycroft-Studios The conversion table is wrong tho. Driver seat index is -1
; -1 -1 = -2
. seatsToWindow[-2] = nil
.
No description provided.