Jump to content

Vinyard

Moderators
  • Posts

    1,733
  • Joined

  • Last visited

  • Days Won

    49

Everything posted by Vinyard

  1. Hi guys. I'm Tomitza. I use sG scripts for a server to play with my friends and I want to add more objects but I don't know how . Here is the list of items from download package. g_items = { -- name, description, category, model, rx, ry, rz, zoffset -- categories: -- 1 = Food & Drink -- 2 = Keys -- 3 = Drugs -- 4 = Other -- 5 = Books -- 6 = Clothing & Accessories -- 7 = Electronics { "Hotdog", "A steamy, good looking and tasty hotdog.", 1, 2215, 205, 205, 0, 0.01 }, { "Cellphone", "A sleek cellphone, look's like a new one too.", 7, 330, 90, 90, 0, -0.05 }, { "Vehicle Key", "A vehicle key with a small manufacturers badge on it. (( Opens vehicle ##v ))", 2, 1581, 270, 270, 0, 0 }, { "House Key", "A green house key.", 2, 1581, 270, 270, 0, 0 }, { "Business Key", "A blue business key.", 2, 1581, 270, 270, 0, 0 }, { "Radio", "A black radio.", 7, 330, 90, 90, 0, -0.05 }, { "Phonebook", "A torn phonebook.", 5, 2824, 0, 0, 0, -0.01 }, { "Sandwich", "A yummy sandwich with cheese.", 1, 2355, 205, 205, 0, 0.06 }, { "Softdrink", "A can of Sprunk.", 1, 2647, 0, 0, 0, 0.12 }, { "Dice", "A white dice with white dots.", 4, 1271, 0, 0, 0, 0.285 }, { "Taco", "A greasy mexican taco.", 1, 2215, 205, 205, 0, 0.06 }, { "Burger", "A double cheeseburger with bacon.", 1, 2703, 265, 0, 0, 0.06 }, { "Donut", "Hot sticky sugar covered donut.", 1, 2222, 0, 0, 0, 0.07 }, { "Cookie", "A luxury chocolate chip cookie.", 1, 2222, 0, 0, 0, 0.07 }, { "Water", "A bottle of mineral water.", 1, 1484, -15, 30, 0, 0.2 }, { "Clothes", "A set of clean clothes. (( Skin ID ##v ))", 6, 2386, 0, 0, 0, 0.1 }, { "Watch", "A smart gold watch.", 6, 1271, 0, 0, 0, 0.285 }, { "City Guide", "A small city guide booklet.", 5, 2824, 0, 0, 0, -0.01 }, { "MP3 Player", "A white, sleek looking MP3 Player. The brand reads EyePod.", 7, 2886, 270, 0, 0, 0.1 }, { "Standard Fighting for Dummies", "A book on how to do standard fighting.", 5, 2824, 0, 0, 0, -0.01 }, { "Boxing for Dummies", "A book on how to do boxing.", 5, 2824, 0, 0, 0, -0.01 }, { "Kung Fu for Dummies", "A book on how to do kung fu.", 5, 2824, 0, 0, 0, -0.01 }, { "Knee Head Fighting for Dummies", "A book on how to do grab kick fighting.", 5, 2824, 0, 0, 0, -0.01 }, { "Grab Kick Fighting for Dummies", "A book on how to do elbow fighting.", 5, 2824, 0, 0, 0, -0.01 }, { "Elbow Fighting for Dummies", "A book on how to do elbow fighting.", 5, 2824, 0, 0, 0, -0.01 }, { "Gas Mask", "A black gas mask, blocks out the effects of gas and flashbangs.", 6, 2386, 0, 0, 0, 0.1 }, { "Flashbang", "A small grenade canister with FB written on the side.", 4, 343, 0, 0, 0, 0.1 }, { "Glowstick", "A green glowstick.", 4, 343, 0, 0, 0, 0.1 }, { "Door Ram", "A red metal door ram.", 4, 1587, 90, 0, 0, 0.05 }, { "Cannabis Sativa", "Cannabis Sativa, when mixed can create some strong drugs.", 3, 1279, 0, 0, 0, 0 }, { "Cocaine Alkaloid", "Cocaine Alkaloid, when mixed can create some strong drugs.", 3, 1279, 0, 0, 0, 0 }, { "Lysergic Acid", "Lysergic Acid, when mixed can create some strong drugs.", 3, 1279, 0, 0, 0, 0 }, { "Unprocessed PCP", "Unprocessed PCP, when mixed can create some strong drugs.", 3, 1279, 0, 0, 0, 0 }, { "Cocaine", "1g of cocaine.", 3, 1575, 0, 0, 0, 0 }, { "Drug 2", "A marijuana joint laced in cocaine.", 3, 1576, 0, 0, 0, 0 }, { "Drug 3", "50mg of cocaine laced in lysergic acid.", 3, 1578, 0, 0, 0, -0.02 }, { "Drug 4", "50mg of cocaine laced in phencyclidine.", 3, 1579, 0, 0, 0, 0 }, { "Marijuana", "A marijuana joint.", 3, 3044, 0, 0, 0, 0.04 }, { "Drug 6", "A marijuana joint laced in lysergic acid.", 3, 1580, 0, 0, 0, 0 }, { "Angel Dust", "A marijuana joint laced in phencyclidine.", 3, 1575, 0, 0, 0, -0.02 }, { "LSD", "80 micrograms of LSD.", 3, 1576, 0, 0, 0, 0 }, { "Drug 9", "100milligrams of yellow liquid.", 3, 1577, 0, 0, 0, 0 }, { "PCP Hydrochloride", "10mg of phencyclidine powder.", 3, 1578, 0, 0, 0, 0 }, { "Chemistry Set", "A small chemistry set.", 4, 1210, 90, 0, 0, 0.1 }, { "Handcuffs", "A pair of metal handcuffs.", 4, 2386, 0, 0, 0, 0.1 }, { "Rope", "A long rope.", 4, 1271, 0, 0, 0, 0.285 }, { "Handcuff Keys", "A small pair of handcuff keys.", 4, 2386, 0, 0, 0, 0.1 }, { "Backpack", "A reasonably sized backpack.", 4, 3026, 270, 0, 0, 0 }, { "Fishing Rod", "A 7 foot carbon steel fishing rod.", 4, 338, 80, 0, 0, -0.02 }, { "Los Santos Highway Code", "The Los Santos Highway Code.", 5, 2824, 0, 0, 0, -0.01 }, { "Chemistry 101", "An Introduction to Useful Chemistry.", 5, 2824, 0, 0, 0, -0.01 }, { "Police Officer's Manual", "The Police Officer's Manual.", 5, 2824, 0, 0, 0, -0.01 }, { "Breathalizer", "A small black breathalizer.", 4, 1271, 0, 0, 0, 0.285 }, { "Ghettoblaster", "A black Ghettoblaster.", 7, 2226, 0, 0, 0, 0 }, { "Business Card", "Steven Pullman - L.V. Freight Depot, Tel: 12555", 4, 1581, 270, 270, 0, 0 }, { "Ski Mask", "A Ski mask.", 6, 2386, 0, 0, 0, 0.1 }, { "Fuel Can", "A small metal fuel canister.", 4, 1517, 0, 0, 0, 0.15 }, { "Ziebrand Beer", "The finest beer, imported from Holland.", 1, 1520, 0, 0, 0, 0.15 }, { "Mudkip", "So i herd u liek mudkips? mabako's Favorite.", 1, 1579, 0, 0, 0, 0 }, { "Safe", "A safe to store your items in.", 4, 2332, 0, 0, 0, 0 }, { "Emergency Light Strobes", "An Emergency Light Strobe which you can put on you car.", 7, 2886, 270, 0, 0, 0.1 }, { "Bastradov Vodka", "For your best friends - Bastradov Vodka.", 1, 1512, 0, 0, 0, 0.25 }, { "Scottish Whiskey", "The Best Scottish Whiskey, now exclusively made from Haggis.", 1, 1512, 0, 0, 0, 0.25 }, { "LSPD Badge", "A Los Santos Police Department badge.", 4, 1581, 270, 270, 0, 0 }, { "LSES Identification", "An Los Santos Emergency Service Identification.", 4, 1581, 270, 270, 0, 0 }, { "Blindfold", "A black blindfold.", 6, 2386, 0, 0, 0, 0.1 }, { "GPS", "A GPS Satnav for a car.", 6, 2886, 270, 0, 0, 0.1 }, { "Lottery Ticket", "A Los Santos Lottery ticket.", 6, 1581, 270, 270, 0, 0 }, { "Dictionary", "A Dictionary.", 5, 2824, 0, 0, 0, -0.01 }, { "First Aid Kit", "Saves a Life. Can be used #v times.", 4, 1240, 90, 0, 0, 0.05 }, { "Notebook", "A small collection of blank papers, useful for writing notes. There are #v pages left. ((/writenote))", 4, 2824, 0, 0, 0, -0.01 }, { "Note", "The note reads: #v", 4, 2824, 0, 0, 0, -0.01 }, { "Elevator Remote", "A small remote to change an elevator's mode.", 2, 364, 0, 0, 0, 0.05 }, { "Bomb", "What could possibly happen when you use this?", 4, 363, 270, 0, 0, 0.05 }, { "Bomb Remote", "Has a funny red button.", 4, 364, 0, 0, 0, 0.05 }, { "Riot Shield", "A heavy riot shield.", 4, 1631, -90, 0, 0, 0.1 }, { "Card Deck", "A card deck to play some games.", 4,2824, 0, 0, 0, -0.01 }, { "San Andreas Pilot Certificate", "An official permission to fly planes and helicopters.", 4, 1581, 270, 270, 0, 0 }, { "Porn Tape", "A porn tape, #v", 4,2824, 0, 0, 0, -0.01 }, { "Generic Item", "#v", 4, 1271, 0, 0, 0, 0.285 }, { "Fridge", "A fridge to store food and drinks in.", 7, 2147, 0, 0, 0, 0 }, { "LST&R Identification", "This LST&R Identification has been issued to #v.", 4, 1581, 270, 270, 0, 0 }, { "Coffee", "A small cup of Coffee.", 1, 2647, 0, 0, 0, 0.12 }, { "Escort 9500ci Radar Detector", "Detects Police within a half mile.", 7, 330, 90, 90, 0, -0.05 }, { "Emergency Siren", "An emergency siren to put in your car.", 7, 330, 90, 90, 0, -0.05 }, { "SAN Identifcation", "A SAN Identification issued to #v.", 7, 330, 90, 90, 0, -0.05 }, { "LS Government Badge", "A Los Santos Government Badge.", 4, 1581, 270, 270, 0, 0 }, { "Earpiece", "A small earpiece, can be connected to a radio.", 7, 1581, 270, 270, 0, 0 }, { "Food", "", 1, 2222, 0, 0, 0, 0.07 }, { "Helmet", "Ideal for riding bikes.", 6, 2386, 0, 0, 0, 0.1 }, { "Eggnog", "Yum Yum.", 1, 2647, 0, 0, 0, 0.1 }, --91 { "Turkey", "Yum Yum.", 1, 2222, 0, 0, 0, 0.1 }, { "Christmas Pudding", "Yum Yum.", 1, 2222, 0, 0, 0, 0.1 }, { "Christmas Present", "I know you want one.", 4, 1220, 0, 0, 0, 0.1 }, { "Drink", "", 1, 1484, -15, 30, 0, 0.2 }, { "PDA", "A top of the range PDA to view e-mails and browse the internet.", 6, 2886, 270, 0, 0, 0.1 }, { "LSES Procedures Manual", "The Los Santos Emergency Service procedures handbook.", 5, 2824, 0, 0, 0, -0.01 }, { "Garage Remote", "A small remote to open or close a Garage.", 2, 364, 0, 0, 0, 0.05 }, { "Mixed Dinner Tray", "Lets play the guessing game.", 1, 2355, 205, 205, 0, 0.06 }, { "Small Milk Carton", "Lumps included!", 1, 2856, 0, 0, 0, 0 }, { "Small Juice Carton", "Thirsty?", 1, 2647, 0, 0, 0, 0.12 }, { "Cabbage", "For those Vegi-Lovers.", 1, 1271, 0, 0, 0, 0.1 }, { "Shelf", "A large shelf to store stuff on", 4, 3761, -0.15, 0, 85, 1.95 }, { "Portable TV", "A portable TV to watch TV shows with.", 6, 2886, 270, 0, 0, 0.1 }, { "Small Single Bed", "Single type bed.", 4, 1796, 0, 0, 0, 0 }, --105 { "Double Bed", "Double type bed",4, 1799, 0, 0, 0, 0 }, { "Single Couch", "single couch.", 4, 1769, 0, 0, 0, 0 }, { "Couch", "A couch.", 4, 1768, 0, 0, 0, 0 }, { "Wooden Chair", "A small wooden chair.", 4, 2120, 0, 0, 0, 0.8 }, { "Office Chair 1", "A office chair.", 4, 1715, 0, 0, 0, 0.2}, { "Office Chair 2", "A small wooden chair.", 4,1714, 0, 0, 0, 0.2 }, --111 { "Bar stool", "A barstool.", 4, 2350, 0, 0, 0, 0.3 }, { "Pizza Table", "A pizza table.", 4, 2764, 0, 0, 0, 0.3 }, { "Pool Table", "A pool table.", 4, 2964, 0, 0, 0, 0 }, { "Card Table", "A card table.", 4, 2188, 0, 0, 0, 1 }, --115 { "Ramp", "A wooden ramp.", 4, 1245, 0, 0, 0, 1 }, { "Ramp 2", "A yellow coloured ramp.", 4,13593, 0, 0, 0, 1}, { "Shop Desk", "A small shop desk.", 4,2370, 0, 0, 0, 0 ,0}, { "Electric lock", "An electrical lock to protect vehicle from jackers.", 7,1581, 270, 270, 0, 0} --Chairs = { 1663, 1671, 1720, 1721, 1810, 1811, 2079, 2120, 2121, 2125, 2777, 2788, 1369 } } function getItemRotInfo(id) if not g_items[id] then return 0, 0, 0, 0 else return g_items[id][5], g_items[id][6], g_items[id][7], g_items[id][8] end end local function findVehicleName( value ) for _, theVehicle in pairs( getElementsByType( "vehicle" ) ) do if getElementData( theVehicle, "dbid" ) == value then return " (" .. getVehicleName( theVehicle ) .. ")" end end return "" end function getItemName(id, value) if id == -100 then return "Body Armor" elseif id == -46 then -- MTA Client bug return "Parachute" elseif id < 0 then return getWeaponNameFromID( -id ) elseif not g_items[id] then return "?" elseif id == 3 and value then return g_items[id][1] .. findVehicleName(value) elseif ( id == 4 or id == 5 ) and value then local pickup = exports['interior-system']:findParent( nil, value ) local name = pickup and getElementData( pickup, "name" ) return g_items[id][1] .. ( name and ( " (" .. name .. ")" ) or "" ) elseif ( id == 80 ) and value then return value elseif ( id == 96 ) and value and value ~= 1 then return value elseif ( id == 89 or id == 95 ) and value and value:find( ";" ) then return value:sub( 1, value:find( ";" ) - 1 ) else return g_items[id][1] end end function getItemValue(id, value) if id == 80 then return "" elseif id == 96 then return 1 elseif id == 89 or id == 95 then return value:sub( value:find( ";" ) + 1 ) else return value end end function getItemDescription(id, value) local i = g_items[id] if i then local desc = i[2] if id == 96 and value ~= 1 then return desc:gsub("PDA","Laptop") else return desc:gsub("#v",value) end end end function getItemType(id) return ( g_items[id] or { nil, nil, 4 } )[3] end function getItemModel(id) return ( g_items[id] or { nil, nil, nil, 1271 } )[4] end Well I don't know what to do after category [ model, rx, ry, rz, zoffset] I know I should make mine but if you can answer I would appreciate. Thanks for help Tomitza
  2. He said car mods. viewtopic.php?f=91&t=42687&p=431325#p431325 Use first "Search" function.
  3. Vinyard

    MySQL

    viewtopic.php?f=148&t=42067 - This Should Help You
  4. Well, Good Luck. Vedic had a script like this one.
  5. https://wiki.multitheftauto.com/wiki/Skins_Page_12 - Here are the Police skins For cadet suit you can use ID 71 https://wiki.multitheftauto.com/wiki/Skins_Page_3
  6. Well in this case, use /Setskin but if the player is in faction "Police" or how you named he can do /duty Edit: Don't double post Use "Edit"
  7. Well if you got the resources you can try /makeshop 7 *Police officer Id* [ Command | Type = 7 For a simple NPC | Id ]. Hope I helped.
  8. Rolling11, I got a small question.. If is a roleplay gamemode, why there are zombies? You said is "the best roleplay script" but IRL I really can't see zombies.. Do you?
  9. Yes, true with Absence2. If you want to release it and people download it, post a link here. Else don't announce a release that will never come... EDIT: Also if you give beta versions why don't you put a link for that too? Anyway is April 28. Almost 1 May..
  10. Well I don't really used Mta Paradise but for cars and things you can make them with a command like /makeveh, jobs are included and to make houses for sell you can go front of a door and do /addinterior. Much commands you can see in /ah [ Most of RP servers use it ] Hope I helped you.
  11. Well in March He made a post saying that He release it in 27 March 2012. viewtopic.php?f=108&t=41560 So people don't know what to trust.
  12. Read this first viewtopic.php?f=148&t=42067
  13. Maybe He want to say that when a player has 2 cars bought he can't buy a 3th one Maybe
  14. @DuMys1996, asta te va ajuta, chiar quantumz la scris la inceputul paginii, daca il citeai... *NU cereti prea multe de la comunitate. Asa nu: Exemplu: Vreau un gamemode precum Valhalla, cine mi-l face are o ciocolata) ***sau*** Vreau harta aia bestiala dupa serverul ala bestial Xulescu(daca aveti dreptul de a face harta publica o puteti uploada pe un site the file sharing, altfel postul va fi sters) Sper ca am ajutat
  15. Salut, am vrut sa deschid un server de RP, totul ok pana cand vreau sa deschid server-ul... Primesc o eroare asa: Error: Problem with resource : RolePlay; Fail to link to vehicles Ma puteti ajuta? Multumesc anticipat
×
×
  • Create New...