FiveM Docs
/
Native Reference
API Set:
all
server
client
Language:
raw
lua
c#
js
onClientGameTypeStart
Parameters
string resourceName
resourceName
: The name of the resource/gametype that started.
Examples
JavaScript Example:
on(
'onClientGameTypeStart'
,
(
name
) =>
{
console
.log(
'Map started: '
, name);
});