local playerIdentifiers --[[ table of string ]] = GetPlayerIdentifiers(playerID --[[ int ]])
Here. What does [] these mean, and i’m i sopposed to use this in the line of code? and what does “int” stand for?
I hope i didnt ask to many things but i have already done the simple script that is on the forums, but no one ever explains how to use the FiveM Wiki to create an script here!
CreateThread is away of create a coroutine.
A coroutine is like normal function, it will execute the code. However it does not have to “complete” or run all the way to the end.
A coroutine can “yield”, that is a coroutine saying “I am done with whatever I was doing” and the system will then continue what it was doing before the coroutine.
Next time around, it will continue/resume the coroutine where it left off, until it yet again will run into a yield.
In this case the “yield” is known as “Citizen.Wait(0)”
A coroutine has similar functionality as a thread, but instead of executing it in parallel, it will execute it one by one.
You can call these methods in the LUA code. For instance if you want to get the player ped, you can write “PlayerPedId()” as described in the native documentation
Note that you need to use the right names, PLAYER_PED_ID wont work, it needs to be: