Scripts for gta not to fivem

Hello. I don’t know if I put it in the right category. But I have a question, I would like to write scripts for gta 5 not to fivem but I don’t know in what language. If anyone knows in which language, please send me a guide on how to write scripts and documentation as up-to-date as possible