Open Swellington-Soares opened 2 months ago
This seems like something that should be a ConVar, not an export.
This seems like something that should be a ConVar, not an export.
I also thought about this, but on the other hand the server dev may want to create a script that allows, for example, the user to choose the custom animation from a list. That's why I put it as exports.
You missed a call under this to free the animation when its no longer needed
if shouldPlayAnimation then
RemoveAnimDict('random@arrests')
end
You missed a call under this to free the animation when its no longer needed
if shouldPlayAnimation then RemoveAnimDict('random@arrests') end
I believe this time it fixes it.
Just a bump here, didn't forget about this, just need to test this along side other changes I have stashed away :)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Addition of an exports function to enable the use of custom animation directly in the script, thus eliminating external means of doing the same thing, taking advantage of what the script already offers.