Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventHandler("onClientGUIScroll", getRootElement(),
- function()
- local pos = guiScrollBarGetScrollPosition(source)
- local vehicle = getPedOccupiedVehicle(getLocalPlayer())
- if pos and vehicle then
- setVehicleDoorOpenRatio(vehicle, 2, (pos / 100))
- end
- end
- )
Add Comment
Please, Sign In to add comment