Jump to content

Potato_Tomato420

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by Potato_Tomato420

  1. Yes now i know what the error means But still don't understand why it has no number. This is a function of a other script (same resource):
  2. Can somebody tells me what this error means? Error: SAFshop\speedometer.lua:20 bad argument #1 to 'floor' (number expected, got nil) Script:
  3. I'm currently busy scripting a truckerjob for my server but i have a problem. When the players hits the job marker and doesn't choose a skin the debug says: WARNING: [gameplay]\SAFtrucker\mainServer.lua:11: Expected number, got non-convertible string. This warning may be an error in future versions. I know what the errors means but i have no idea how to solve it. GridList: truckerSkinGL = guiCreateGridList(0, 100, 300, 115, false, truckerWindow) guiGridListAddColumn(truckerSkinGL, "ID:", 0.2) guiGridListAddColumn(truckerSkinGL, "Skin Name:", 0.7) for i = 1, 2 do guiGridListAddRow(truckerSkinGL) end guiGridListSetItemText(truckerSkinGL, 0, 1, "132", false, false) guiGridListSetItemText(truckerSkinGL, 0, 2, "Male Trucker", false, false) guiGridListSetItemText(truckerSkinGL, 1, 1, "198", false, false) guiGridListSetItemText(truckerSkinGL, 1, 2, "Female Trucker", false, false) Function: function takeTruckerJob(button, state) skin = guiGridListGetItemText ( truckerSkinGL, guiGridListGetSelectedItem ( truckerSkinGL ), 1 ) if skin ~= 0 then guiSetVisible(truckerWindow, false) showCursor(false) triggerServerEvent ( "setTruckerTeam", localPlayer, skin) else outputChatBox ("** You must choose a skin!", 255, 0, 0, true) -- exports["SAFtopBar"]:sendClientMessage("You must choose a skin!", 255, 0, 0, true, 8) end end addEventHandler("onClientGUIClick", btnAccept, takeTruckerJob, false) Problem already solved.
  4. Does somebody know how i could add gta united to my server? I would love to add gta vc to my server!
  5. Hi, Does somebody know if it is possible to enter a interior with the map editor? If so then how? I tried a lot but nothing seems to work...
×
×
  • Create New...