Skip to content

Add DarkRP support for vehicle locking and switching seats#274

Open
Vitroze wants to merge 2 commits intoStyledStrike:mainfrom
Vitroze:lock
Open

Add DarkRP support for vehicle locking and switching seats#274
Vitroze wants to merge 2 commits intoStyledStrike:mainfrom
Vitroze:lock

Conversation

@Vitroze
Copy link
Copy Markdown
Contributor

@Vitroze Vitroze commented Apr 10, 2026

Hello,
My last pull request regarding compatibility with DarkRP (#263) was accepted. Unfortunately, the key system no longer works after the @StyledStrike has been modified.

The purpose of this pull request is to prevent even the owner in DarkRP from entering a locked vehicle.

Comment thread lua/glide/server/util.lua Outdated
return true
end

return false
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this return false supposed to be here? This will make so that, while on DarkRP, not even the owner can lock the vehicle, and it will never run the Glide_CanLockVehicle hook either.

In fact, this code only allows locking the vehicle while switching seats, but you can't switch seats while locking the vehicle so... Everything here is dead code

Copy link
Copy Markdown
Contributor Author

@Vitroze Vitroze Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since CanEnterLockedVehicle is used once in the Glide code, I initially thought it was used to check if someone wanted to enter the vehicle or not.

However, it's a system to check if it can lock the vehicle.

I just moved the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants