Jump to content

andrius

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

andrius's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. Yeah, I figured it out (as seen in edit), but thanks anyway ?
  2. main.Lua file: function gamemodeResourceLoaded ( res ) addPickupItem(1, 1, 0, 0, 0) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), gamemodeResourceLoaded ) ground_items/items_func.Lua file: function addPickupItem(item, ammount, x, y, z) return true end meta.xml: <meta> <info author="Andrius" description="None" version="1.0" type="gamemode" /> <script src="main.Lua" type="server" /> <!-- Items --> <file src="ground_items/items_func.Lua" type="server" /> </meta> Error on resource start: [2019-11-05 17:24:45] ERROR: [gamemodes]\simplemode\main.Lua:27: attempt to call global 'addPickupItem' (a nil value) 27 line is: addPickupItem(1, 1, 0, 0, 0) Can someone explain this magic to me? function declared, but also it is not or what --------------------------------------------------- SOLVED. It should be <script src="ground_items/items_func.Lua" type="server" /> NOT <file src="ground_items/items_func.Lua" type="server" /> :D
  3. Hello. When I connect, player is not spawned, camera doesnt faded and so on. I do all these things by script, but is it possible to "unspawn" player after I use "spawnPlayer" ?
×
×
  • Create New...