Posts: 1,915
Threads: 64
Joined: Jan 2016
Reputation:
0
CreateActor and CreateDynamicActor follow the same id incrementation or it's separate?
Posts: 151
Threads: 47
Joined: Nov 2017
Reputation:
0
Do I need to hide textdraws onplayerdisconnect?
Posts: 2
Threads: 0
Joined: Apr 2010
Reputation:
0
First post after a long time of lurking.
It seems OnPlayerEnterVehicle doesn't get called when a player wants to enter a vehicle as driver and the doors are locked, but does get called when the doors are unlocked. OnPlayerEnterVehicle always gets called for passengers even when doors are locked.
Is this a known issue and is there a workaround for this? I know the animation not getting triggered is a known thing, but the callback not being called?
Posts: 542
Threads: 14
Joined: Aug 2016
Reputation:
0
Could be an error in your code. Do you mind sharing it?
Posts: 716
Threads: 92
Joined: May 2018
And to show it in a message?
Posts: 5
Threads: 2
Joined: Aug 2018
Reputation:
0
Hello. In a house system, when player stands near the entrance pickup of a house, and types /buyhouse, he gets a dialog, which he should either submit or cancel, if player submits it, then on response of this dialog there should be all the stuff with money and mysql queries. The problem is that when player types /buyhouse, server loops through all houses (which might be over 2000 on a server), to find at which house's entrance the player is at, then on respone of the dialog there is the same loop, to get id of the house again. So this is kind of ineficcient to do those 2 loops, a solution that comes to my mind is to store the id of the house in a special variable in player's enum when he types /buyhouse, then use the value in it in the ondialogresponse function, but is this a bad practice?
P.S. by id of house i mean the index of it in the array of houses, and i obviously need to change variables in it after it's purchased.