Sleep for exceute rest of code lua

I want to create a sleep like that :

if playergather then
	drawTxt('~b~Récolte~s~ en cours...',0,1,0.5,0.8,0.6,255,255,255,255)
	sleep(500)
	playergather = false
end

But that doesn’t work :confused: Have you an idea ? Thanks

Citizen.Wait(500)

I think this is what you mean?

1 Like

I foudn a solution with “Wait”, Wait and CItizen.Wait it’s same ?