esx-community / esx_vehiclelock

Vehicle lock system for ESX
38 stars 30 forks source link

little problem #18

Closed daviddusty closed 4 years ago

daviddusty commented 5 years ago

Hello This is not a good place to ask my question about Player Disconnect. I want Help from you please. Look at this problem: https://forum.fivem.net/t/i-need-help-how-to-prevent-player-models-become-npcs-after-they-go-offline/663529/2 i want player Delete and disappear when player disconnect from server. i have problem with player disconnect. if i set NPC to zero with SetScenarioPedDensityMultiplierThisFrame(0.0, 0.0) then when player exit the server , his not remove from es_admin2 list and i can see his ID on top of his head. after 3 minutes player change to npc and run away.

i need a code which prevent change player to NPC