41 lines
1.4 KiB
Lua
41 lines
1.4 KiB
Lua
fx_version 'adamant'
|
|
game 'gta5'
|
|
|
|
resource_code "${resourceCode}"--The Resource Code is used everywhere in our
|
|
name "${resourceName}"--This is the "pretty name" of your script. This will be used for any "name facing" code that is displayed to the user
|
|
description "${description}" --Explains itself.
|
|
author "CSTM Games & KJ4LXC"--Who are you again?
|
|
version "0.0.1"
|
|
|
|
|
|
--Dependencies are the resources that your resource and just not do without. Add additional Resource Codes for any other resources that we have not included in the list already if you need to declare them as a dependency.
|
|
dependencies {
|
|
"GCONFIG",
|
|
"SLF",
|
|
"SCF"
|
|
}
|
|
|
|
--Shared Scripts are scripts shared between both the server and the client. These will run on both server and client, not run on server and allow the clients to use them. Be careful about using net events in these. Its best to use exports if you need to do something inside them. (SCF for instance.)
|
|
-- shared_scripts {
|
|
-- 'shared/*.lua'
|
|
-- }
|
|
|
|
|
|
--Client Scripts run on the client only.
|
|
client_scripts {
|
|
'client/*.lua',
|
|
'menus/*.lua'
|
|
}
|
|
|
|
--Server Scripts run on the server only.
|
|
server_scripts {
|
|
'server/*.lua'
|
|
}
|
|
|
|
--Files that need to be provided directly to the client for use (sound files, html for visuals, etc) need to be declared in this section. Blobing is supported (folder/*.lua etc)
|
|
-- files {
|
|
|
|
-- }
|
|
|
|
log_level '4'
|
|
USE_MYSQL '1'--This tells the script to call GCONFIG for its updates and if it isn't in the database add them. |