![]() |
Warped NPC will not show after being hidden
I'm working on warping a car from one point to another after they leave the car, but for some reason, the NPC will successfully warp to the point I'd like it to warp to, but because the NPC is hidden after the player gets in the car, using show() to make it visible again will not work, and the NPC remains invisible.
Here's a condensed version of what I'm doing. Class Script - Joined to the car PHP Code:
PHP Code:
|
This is because of serverside to clientside synchronisation not occurring outside of triggers/events.
Try using a .trigger() on the NPC rather than a public function. It's also a bad idea to be using client. variables this way. |
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 09:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.