Guest User

Untitled

a guest
Apr 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. addEventHandler("onClientGUIScroll", getRootElement(),
  2.     function()
  3.         local pos = guiScrollBarGetScrollPosition(source)
  4.         local vehicle = getPedOccupiedVehicle(getLocalPlayer())
  5.         if pos and vehicle then
  6.             setVehicleDoorOpenRatio(vehicle, 2, (pos / 100))
  7.         end
  8.     end
  9. )
Add Comment
Please, Sign In to add comment