Hello, I get a lua error and need help.
[ERROR] addons/darkrpmodification-master/lua/darkrp_config/settings.lua:303: '}' expected (to close '{' at line 297) near '"pocket"'
1. unknown - addons/darkrpmodification-master/lua/darkrp_config/settings.lua:0
I cant find the error :(
Code: [CODE]
/*
Toggle settings
Set to true or false
*/
-- voice3D - Enable/disable 3DVoice is enabled
GM.Config.voice3D = true
-- AdminsCopWeapons - Enable/disable admins spawning with cop weapons
GM.Config.AdminsCopWeapons = true
-- allow people getting their own custom jobs
GM.Config.allowjobswitch = true
-- allowrpnames - Allow Players to Set their RP names using the /rpname command.
GM.Config.allowrpnames = true
-- allowsprays - Enable/disable the use of sprays on the server.
GM.Config.allowsprays = true
-- allowvehicleowning - Enable/disable whether people can own vehicles.
GM.Config.allowvehicleowning = true
-- allowvnocollide - Enable/disable the ability to no-collide a vehicle (for security).
GM.Config.allowvnocollide = false
-- alltalk - Enable for global chat, disable for local chat.
GM.Config.alltalk = false
-- autovehiclelock - Enable/Disable automatic locking of a vehicle when a player exits it.
GM.Config.autovehiclelock = false
-- babygod - people spawn godded (prevent spawn killing)
GM.Config.babygod = true
-- canforcedooropen - whether players can force an unownable door open with lockpick or battering ram or w/e
GM.Config.canforcedooropen = true
-- chatsounds - sounds are played when some things are said in chat
GM.Config.chatsounds = true
-- chiefjailpos - Allow the Chief to set the jail positions.
GM.Config.chiefjailpos = true
-- cit_propertytax - Enable/disable property tax that is exclusive only for citizens.
GM.Config.cit_propertytax = false
-- copscanunfreeze - Enable/disable the ability of cops to unfreeze other people's props
GM.Config.copscanunfreeze = true
-- copscanunweld - Enable/disable the ability of cops to unweld other people's props
GM.Config.copscanunweld = false
-- cpcanarrestcp - Allow/Disallow CPs to arrest other CPs.
GM.Config.cpcanarrestcp = true
-- currencyLeft - The position of the currency symbol. true for left, false for right.
GM.Config.currencyLeft = true
-- customjobs - Enable/disable the /job command (personalized job names).
GM.Config.customjobs = true
-- customspawns - Enable/disable whether custom spawns should be used.
GM.Config.customspawns = true
-- deathblack - Whether or not a player sees black on death.
GM.Config.deathblack = false
-- showdeaths - Display kill information in the upper right corner of everyone's screen.
GM.Config.showdeaths = true
-- deathpov - Enable/disable whether people see their death in first person view
GM.Config.deathpov = false
-- decalcleaner - Enable/Disable clearing ever players decals.
GM.Config.decalcleaner = false
-- disallowClientsideScripts - Clientside scripts can be very useful for customizing the HUD or to aid in building. This option bans those scripts.
GM.Config.disallowClientsideScripts = false
-- doorwarrants - Enable/disable Warrant requirement to enter property.
GM.Config.doorwarrants = true
-- dropmoneyondeath - Enable/disable whether people drop money on death.
GM.Config.dropmoneyondeath = true
-- droppocketarrest - Enable/disable whether people drop the stuff in their pockets when they get arrested.
GM.Config.droppocketarrest = false
-- droppocketdeath - Enable/disable whether people drop the stuff in their pockets when they die.
GM.Config.droppocketdeath =false
-- dropweapondeath - Enable/disable whether people drop their current weapon when they die.
GM.Config.dropweapondeath = false
-- Whether players can drop the weapons they spawn with
GM.Config.dropspawnedweapons =false
-- dynamicvoice - Enable/disable whether only people in the same room as you can hear your mic.
GM.Config.dynamicvoice = true
-- earthquakes - Enable/disable earthquakes.
GM.Config.earthquakes = false
-- enablebuypistol - Turn /buy on of off.
GM.Config.enablebuypistol = true
-- enforceplayermodel - Whether or not to force players to use their role-defined character models.
GM.Config.enforceplayermodel = true
-- globalshow - Whether or not to display player info above players' heads in-game.
GM.Config.globalshow = false
-- ironshoot - Enable/disable whether people need iron sights to shoot.
GM.Config.ironshoot = true
-- showjob - Whether or not to display a player's job above their head in-game.
GM.Config.showjob = true
-- letters - Enable/disable letter writing / typing.
GM.Config.letters = true
-- license - Enable/disable People need a license to be able to pick up guns
GM.Config.license = false
-- logging - Enable/disable logging everything that happens.
GM.Config.logging = true
-- lottery - Enable/disable creating lotteries for mayors
GM.Config.lottery = true
-- showname - Whether or not to display a player's name above their head in-game.
GM.Config.showname = true
-- showname - Whether or not to display a player's health above their head in-game.
GM.Config.showhealth = true
-- needwantedforarrest - Enable/disable Cops can only arrest wanted people.
GM.Config.needwantedforarrest = false
-- noguns - Enabling this feature bans Guns and Gun Dealers.
GM.Config.noguns = false
-- norespawn - Enable/Disable that people don't have to respawn when they change job.
GM.Config.norespawn = true
-- npcarrest - Enable/disable arresting npc's
GM.Config.npcarrest = true
-- ooc - Whether or not OOC tags are enabled.
GM.Config.ooc = true
-- propertytax - Enable/disable property tax.
GM.Config.propertytax = false
-- proppaying - Whether or not players should pay for spawning props.
GM.Config.proppaying = false
-- propspawning - Enable/disable props spawning for non-admins.
GM.Config.propspawning = true
-- removeclassitems - Enable/disable shipments/microwaves/etc. removal when someone changes team.
GM.Config.removeclassitems = true
-- respawninjail - Enable/disable whether people can respawn in jail when they die
GM.Config.respawninjail = true
-- restrictallteams - Enable/disable Players can only be citizen until an admin allows them.
GM.Config.restrictallteams = false
-- restrictbuypistol - Enabling this feature makes /buy available only to Gun Dealers.
GM.Config.restrictbuypistol = false
-- restrictdrop - Enable/disable restricting the weapons players can drop. Setting this to true disallows weapons from shipments from being dropped
GM.Config.restrictdrop = false
-- strictsuicide - Whether or not players should spawn where they suicided
GM.Config.strictsuicide = false
-- telefromjail - Enable/disable teleporting from jail.
GM.Config.telefromjail = true
-- teletojail - Enable/disable teleporting to jail.
GM.Config.teletojail = true
-- unlockdoorsonstart - Enable/Disable unlocking all doors on map start.
GM.Config.unlockdoorsonstart = false
-- voiceradius - Enable/disable local voice chat.
GM.Config.voiceradius = true
-- tax - Whether players pay taxes on their wallets.
GM.Config.wallettax = false
-- wantedsuicide - Enable/Disable suiciding while you are wanted by the police.
GM.Config.wantedsuicide = false
-- showcrosshairs - Enable/disable crosshair visibility
GM.Config.showcrosshairs = true
-- realisticfalldamage - Enable/Disable dynamic fall damage. Setting mp_falldamage to 1 will over-ride this.
GM.Config.realisticfalldamage = true
-- printeroverheat - Can the default money printer overheat on its own?
GM.Config.printeroverheat = true
-- weaponCheckerHideDefault - Hide default weapons when checking weapons
GM.Config.weaponCheckerHideDefault = true
-- weaponCheckerHideNoLicense - Hide weapons that do not require a license
GM.Config.weaponCheckerHideNoLicense = false
/*
Value settings
*/
-- adminnpcs - Whether or not NPCs should be admin only. 0 = ev
[img]http://i.imgur.com/OHV18vu.png[/img]
But to answer your question, like hundreds of you before, you missed an "," in GM.Config.DefaultWeapons.
[QUOTE=Robotboy655;44489214][img]http://i.imgur.com/OHV18vu.png[/img]
But to answer your question, like hundreds of you before, you missed an "," in GM.Config.DefaultWeapons.[/QUOTE]
In case OP doesn't see the error:
[code]GM.Config.DefaultWeapons =
{
"keys",
"weapon_physcannon",
"gmod_camera",
"gmod_tool",
"weapon_physgun"
"pocket"
}[/code]
Replace with:
[code]GM.Config.DefaultWeapons =
{
"keys",
"weapon_physcannon",
"gmod_camera",
"gmod_tool",
"weapon_physgun", -- Comma added here.
"pocket"
}[/code]
[QUOTE=Cyberuben;44489570]In case OP doesn't see the error:
[code]GM.Config.DefaultWeapons =
{
"keys",
"weapon_physcannon",
"gmod_camera",
"gmod_tool",
"weapon_physgun"
"pocket"
}[/code]
Replace with:
[code]GM.Config.DefaultWeapons =
{
"keys",
"weapon_physcannon",
"gmod_camera",
"gmod_tool",
"weapon_physgun", -- Comma added here.
"pocket"
}[/code][/QUOTE]
That looks ugly with pocket so far out
[code]GM.Config.DefaultWeapons =
{
"keys",
"weapon_physcannon",
"gmod_camera",
"gmod_tool",
"weapon_physgun", -- Comma added here.
"pocket"
}[/code]
[QUOTE=Baby Weiner;44490967]That looks ugly with pocket so far out
[code]GM.Config.DefaultWeapons =
{
"keys",
"weapon_physcannon",
"gmod_camera",
"gmod_tool",
"weapon_physgun", -- Comma added here.
"pocket"
}[/code][/QUOTE]
not that it would have made any difference :V
Sorry, you need to Log In to post a reply to this thread.