fivem-aerial-tramway icon indicating copy to clipboard operation
fivem-aerial-tramway copied to clipboard

Exit from cab

Open zek0 opened this issue 5 years ago • 3 comments

Hello! In OneSync the isssue with exit from cab in last station. Infinite attached to entity. It is possible fix this.

Thank you for script.

zek0 avatar Sep 14 '19 05:09 zek0

yep same issue

ArMaTeC avatar Sep 19 '19 09:09 ArMaTeC

I change the cablecar.state from ‘IDLE’ to ‘MOVE_TO_IDLE_BOTTOM’ Line 360.

 -- Check if we've reached the bottom again
            if cablecar.gradient <= 1 then
                -- Set to raw idle to do nothing and ask the server to sync cars
                cablecar.state = "MOVE_TO_IDLE_BOTTOM"
                cablecar.gradient_distance = 0.0 
				TriggerServerEvent("omni:cablecar:host:sync", cablecar.index, "IDLE_BOTTOM")
                return
            end

phiomet avatar Aug 22 '20 10:08 phiomet

I change the cablecar.state from ‘IDLE’ to ‘MOVE_TO_IDLE_BOTTOM’ Line 360.

 -- Check if we've reached the bottom again
            if cablecar.gradient <= 1 then
                -- Set to raw idle to do nothing and ask the server to sync cars
                cablecar.state = "MOVE_TO_IDLE_BOTTOM"
                cablecar.gradient_distance = 0.0 
				TriggerServerEvent("omni:cablecar:host:sync", cablecar.index, "IDLE_BOTTOM")
                return
            end

this worked, thank you for posting

SlugTeamSix avatar Mar 27 '21 06:03 SlugTeamSix