Using Typescript to add a timer to our death script!
Автор: CodesAndGames
Загружено: 2024-01-24
Просмотров: 314
Описание:
In today's video, I demonstrate how to modify your the health script we coded a while back, and add a timer to the text when a player dies. If you have not seen the last video, please do so as it explains how to setup typescript for fivem script development.
Don't have the code? Watch my video on how to create the script here: • Creating a death script | FiveM typescript...
If you got any errors or got stuck at all, please do not hesitate to post a question in the comments or join my discord and ask for some help there.
My discord: / discord
You should also check out the Main Power framework, because it is an awesome new framework coming out, and the developers and myself are all working hard on the framework. You can also ask questions about the framework and look at updates.
Main Power Discord: / discord
------ Chapters ------
0:00 - Intro
0:23 - Demonstration from last video
0:40 - Code explanation
1:27 - Disclaimer
1:39 - Code start
2:51 - Timer function
6:14 - formatTime Function
7:30 - Editing respawn text
10:13 - Editing death screen function
13:49 - Building our files
14:05 - Testing the script
14:48 - Configure the time remaining
15:28 - Outro
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: