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

feat(client/command): ability to roll down window #97

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

Mycroft-Studios
Copy link
Member

No description provided.

@Kenshiin13 Kenshiin13 self-requested a review December 4, 2024 08:51
client/commands.lua Outdated Show resolved Hide resolved
client/commands.lua Outdated Show resolved Hide resolved
@Kenshiin13 Kenshiin13 self-requested a review December 4, 2024 11:14
client/commands.lua Outdated Show resolved Hide resolved
client/commands.lua Show resolved Hide resolved
client/vehicle/main.lua Outdated Show resolved Hide resolved
end

local seat = ESX.PlayerData.seat
local window = seatsToWindow[seat - 1]
Copy link

@Kenshiin13 Kenshiin13 Dec 12, 2024

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.

Copy link
Member Author

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

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.

@Kenshiin13 Kenshiin13 marked this pull request as draft December 26, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In-Development
Development

Successfully merging this pull request may close these issues.

2 participants