The error im getting is for line 469 the hitman text line i am trying 2 remove the "hit accepted" stuff and if i leave it empty as it is right now i get a error like this.
[ERROR] Lua is unable to understand file "darkrp_config/settings.lua" because its author made a mistake around line number 469.
The best help I can give you is this:
Right before the '=', Lua encountered something it could not make sense of.
any help would be appreciated.
[code]
--[[---------------------------------------------------------------------------
DarkRP config settings
---------------------------------------------------------------------------
This is the settings file of DarkRP. Every DarkRP setting is listed here.
Warning:
If this file is missing settings (because of e.g. an update), DarkRP will assume default values for these settings.
You need not worry about updating this file. If a new setting is added you can manually add them to this file.
---------------------------------------------------------------------------]]
--[[
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 = false
-- adminBypassJobCustomCheck - Enable/disable whether an admin can force set a job with whenever customCheck returns false
GM.Config.adminBypassJobRestrictions = false
-- 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 = true
-- 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 = false
-- 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 = false
-- customspawns - Enable/disable whether custom spawns should be used.
GM.Config.customspawns = false
-- deathblack - Whether or not a player sees black on death.
GM.Config.deathblack = true
-- showdeaths - Display kill information in the upper right corner of everyone's screen.
GM.Config.showdeaths = false
-- deadtalk - Enable/disable whether people talk and use commands while dead
GM.Config.deadtalk = false
-- deadvoice - Enable/disable whether people talk through the microphone while dead
GM.Config.deadvoice = false
-- deathpov - Enable/disable whether people see their death in first person view
GM.Config.deathpov = true
-- 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 = false
-- 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 = true
-- 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 = true
-- 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 = false
-- 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 = true
-- lockpickfading - Enable/disable the lockpicking of fading doors
GM.Config.lockpickfading = true
-- 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 = false
-- 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 = true
-- restrictdrop - Enable/disable restricting the weapons players can drop. Setting this to true disallows weapons from shipments from being dropped
GM.Config.restrictdrop = true
-- revokeLicenseOnJobChange - Whether licenses are revoked when a player changes jobs
GM.Config.revokeLicenseOnJo
Could you please wrap your code in [noparse][code][/code][/noparse]?
[QUOTE=code_gs;48743580]Could you please wrap your code in [noparse][code][/code][/noparse]?[/QUOTE]
i changed it sry for that i didnt know
Probably can't leave this empty.. GM.Config.hitmanText = ""
[QUOTE=minimous;48743877]Probably can't leave this empty.. GM.Config.hitmanText = ""[/QUOTE]
Ive seen alot of people all over the net say you can leave it empty to make it so no messages shows over the hitmans head when they accept a hit. I mean other then that you think leaving a space in there would count but it doesnt.
The text can be empty. The problem is the "," at line 467.
[QUOTE=code_gs;48744859]The text can be empty. The problem is the "," at line 467.[/QUOTE]
What do u mean?
GM.Config.hudText = "Press 'e' on me I can take care of them for you.",
the , at the end is your error
[QUOTE=kulcris;48745141]GM.Config.hudText = "Press 'e' on me I can take care of them for you.",
the , at the end is your error[/QUOTE]
Ok thx i edited that out and it fixed the error
Thank you all for your help its always great to have great forums like this. < 3
Sorry, you need to Log In to post a reply to this thread.