• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

variables functions

sirakx

Member
Joined
Feb 23, 2015
Messages
51
Solutions
1
Reaction score
8
Hello I have a question on how to do this:

Code:
function doStartFunction()
  print("hola")
  return true
end

local config = {
  start = doStartFunction
}

funtion onUse(cid)
    config.start()
end

I've been doing differently, but I did not come out correctly.
This is the error I get:

events.lua:28: attempt to call local 'config.start' (a nil value)

someone help me please?
 
Back
Top