ReGo

Members
  • Content count

    31
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ReGo

  • Rank
    Rat

Details

  • Gang
    fuck
  1. image on text

    i am noobie on images and draw text, so i have no idea
  2. image on text

    any ideas how i can put image on this? Client side toBeShowed = toBeShowed.."Tralala: "..anotherone(this is for the text which will come on that image)).."\n" So basiacly i need to put image on that anotherone ( so the text will be on image)
  3. MTA SDK, password

    Hey, where is show mta sdk password? define('SDK_IP', ""); define('SDK_PORT', "22003"); define('SDK_USER', "where is this?"); define('SDK_PASSWORD', "and this");
  4. Please db for this

    -- new clothing stuff values.id = exports.mysql:query_insert_free("INSERT INTO clothing (skin, url, description, price) VALUES (" .. tonumber(values.skin) .. ", '" .. exports.mysql:escape_string(values.url) .. "', '" .. exports.mysql:escape_string(values.description) .. "', " .. tonumber(values.price) .. ")") if values.id then savedClothing[values.id] = values outputChatBox('Drēbes pievienotas ar ID ' .. values.id .. '.', client, 0, 255, 0) else outputChatBox('Neizdevās pievienot drēbes.', client, 255, 0, 0) end else -- old clothing stuff local existing = savedClothing[values.id] if existing then if exports.mysql:query_free('UPDATE clothing SET skin = ' .. tonumber(values.skin) .. ', description = "' .. exports.mysql:escape_string(values.description) .. '", price = ' .. tonumber(values.price) .. ' WHERE id = ' .. tonumber(values.id)) then outputChatBox('Apģērbs saglabats.', client, 0, 255, 0) existing.skin = tonumber(values.skin) existing.description = tostring(values.description) existing.price = tonumber(values.price) else outputChatBox('Apģērbs netika saglabāts.', client, 255, 0, 0) end else outputChatBox('Neizdevās atrast apģērbus.', client, 255, 0, 0) end end end end, false)
  5. Add command handler - help

    for shop-system
  6. Add command handler - help

    dont working
  7. Add command handler - help

    [center]function collectMoney(thePlayer, shopElement) local pedName = getPedName(shopElement) local playerName = getPlayerName(thePlayer):gsub("_", " ") local sPendingWage = tonumber(getElementData(shopElement, "sPendingWage")) local sIncome = tonumber(getElementData(shopElement, "sIncome")) local profit = sIncome - sPendingWage if profit >= 0 then if sIncome > 0 then if exports.global:giveMoney(thePlayer, sIncome) then setTimer(function () exports.global:sendLocalText(thePlayer, "* "..pedName.." gives "..playerName.." a couple of dollar notes and a jar of coins.", 255, 51, 102, 30, {}, true) storeKeeperSay(thePlayer, "This is what we've got so far, boss. Keep it please.", pedName) setElementData(shopElement, "sIncome", 0, true) mysql:query_free("UPDATE `shops` SET `sIncome`='0' WHERE id='"..tostring(getElementData(shopElement, "dbid")).."' ") playCollectMoneySound(shopElement) --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, false, shopElement) return true end, 3000, 1) end end if sPendingWage > 0 then if not solvePendingWage(thePlayer, shopElement) then --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, true, shopElement) return false end end else if sPendingWage > 0 then if not solvePendingWage(thePlayer, shopElement) then --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, true, shopElement) return false end end if sIncome > 0 then if exports.global:giveMoney(thePlayer, sIncome) then setTimer(function () exports.global:sendLocalText(thePlayer, "* "..pedName.." gives "..playerName.." a couple of dollar notes and a jar of coins.", 255, 51, 102, 30, {}, true) storeKeeperSay(thePlayer, "This is what we've got so far, boss. Keep it please.", pedName) setElementData(shopElement, "sIncome", 0, true) mysql:query_free("UPDATE `shops` SET `sIncome`='0' WHERE id='"..tostring(getElementData(shopElement, "dbid")).."' ") playCollectMoneySound(shopElement) --triggerClientEvent(thePlayer, "shop:toggleGuiElement:bCollectProfit", thePlayer, false, shopElement) return true end, 3000, 1) end end end return false end addEvent("shop:collectMoney", true ) addEventHandler("shop:collectMoney", getRootElement(), collectMoney)[/center] Please add command '/collectmoney' help me please
  8. Help -= car

    BUMP
  9. Help -= car

    local _vehiclecache = {} local function findVehicleName( value ) if _vehiclecache[value] then return _vehiclecache[value] end for _, theVehicle in pairs( getElementsByType( "vehicle" ) ) do if getElementData( theVehicle, "dbid" ) == value then local vehID = getElementModel( theVehicle ) if (vehID==603) then return " (1980 Pontiac Trans Am) " end if (vehID==474) then return " (1950 Mercury) " end if (vehID==403) then return " (Scania Elite) " end if (vehID==490) then return " (BMW X5) " end if (vehID==579) then return " (1992 Land Rover) " end if (vehID==429) then return " (1992 Dodge Viper RT) " end if (vehID==589) then return " (1992 Volkswagen Golf GTI) " end if (vehID==554) then return " (1992 Chevy 1500) " end if (vehID==533) then return " (Renault Cleo Sport) " end if (vehID==445) then return " (1989 Mercedes Benz 300D) " end if (vehID==489) then return " (1980 Ford Branco) " end if (vehID==419) then return " (1975 Cadillac Eldorado) " end if (vehID==471) then return " (ATV Honda) " end if (vehID==411) then return " (1992 Acura NSX) " end if (vehID==574) then return " (Ford Street Cleaner) " end if (vehID==412) then return " (1960 Chevy Impala) " end if (vehID==496) then return " (1985 Honda CRX) " end if (vehID==404) then return " (1967 Chevy Nova Wagon) " end if (vehID==507) then return " (1992 Buick Roadmaster) " end if (vehID==400) then return " (1992 Jeep Cheorokee) " end if (vehID==526) then return " (1992 Ford Thunderbird) " end if (vehID==555) then return " (1961 Jaguar E-Type) " end if (vehID==402) then return " (1987 Camaro Iroc) " end if (vehID==480) then return " (1990 Porsche 911) " end if (vehID==551) then return " (92 Ford Crown Victoria) " end if (vehID==550) then return " (1991 Honda Accord sedan) " end if (vehID==436) then return " (1985 Honda Prelude) " end if (vehID==541) then return " (1990 Ford GT40) " end if (vehID==506) then return " (1992 Mitsubishi 3000GT) " end if (vehID==466) then return " (1961 Dodge Polara) " end if (vehID==475) then return " (970 Chevy Chevelle) " end if (vehID==479) then return " (1977 Ford LTD Wagon) " end if (vehID==405) then return " (1991 BMW 525i) " end if (vehID==602) then return " (1992 Dodge Stealth) " end if (vehID==470) then return " (AM General HMMWV) " end if (vehID==587) then return " (1992 Nissan 300x) " end if (vehID==542) then return " (1969 Pontiac GTO) " end if (vehID==565) then return " (90 Honda Civic Hatch) " end if (vehID==451) then return " (90 Ferrari F40) " end if (vehID==559) then return " (92 Toyota Supra) " end if (vehID==576) then return " (57 Chevy Bel Air) " end if (vehID==467) then return " (58 Dodge Coronet) " end if (vehID==567) then return " (63 Chevrolet Bel-Air) " end if (vehID==410) then return " (1980 Dodge Aries) " end if (vehID==575) then return " (1954 Caddilacdo) " end if (vehID==566) then return " (1984 Chevrolet MonteCarlo) " end if (vehID==598) then return " (1990 Chevrolet Caprice) " end if (vehID==428) then return " (GMC TopKick) " end if (vehID==523) then return " (Police Kawasaki KZ1000) " end if (vehID==534) then return " (P76 Lincoln Mark 5) " end if (vehID==493) then return " (Jetmax) " end if (vehID==571) then return " (Kart) " end -- [428]="Securicar", [523]="HPV1000" end end return " (Invalid vehicle name\nplease report to an admin!)" end Other cars dont working, only this car's, please help
  10. dont working [custom car names]

    Please help me.....
  11. dont working [custom car names]

    dont working, this script, vehicle key [car name] is "?"
  12. CarNames = {[603] = "1980 Pontiac Trans Am", [474] = "1950 Mercury", [403] = "Scania Elite", [490] = "BMW X5", [579] = "1992 Land Rover", [429] = "1992 Dodge Viper RT", [589] = "1992 Volkswagen Golf GTI",[554] = "1992 Chevy 1500", [533] = "Renault Cleo Sport", [445] = "1989 Mercedes Benz 300D", [489] = "1980 Ford Branco", [419] = "1975 Cadillac Eldorado", [471] = "ATV Honda", [411] = "1992 Acura NSX", [574] = "Ford Street Cleaner", [412] = "1960 Chevy Impala", [496] = "1985 Honda CRX", [404] = "1967 Chevy Nova Wagon", [507] = "1992 Buick Roadmaster", [400] = "1992 Jeep Cheorokee", [526] = "1992 Ford Thunderbird", [555] = "1961 Jaguar E-Type", [402] = "1987 Camaro Iroc", [480] = "1990 Porsche 911", [551] = "92 Ford Crown Victoria", [550] = "1991 Honda Accord sedan", [436] = "1985 Honda Prelude", [541] = "1990 Ford GT40", [506] = "1992 Mitsubishi 3000GT", [466] = "1961 Dodge Polara", [475] = "970 Chevy Chevelle", [479] = "1977 Ford LTD Wagon", [405] = "1991 BMW 525i", [602] = "1992 Dodge Stealth ", [470] = "AM General HMMWV", [587] = "1992 Nissan 300x", [542] = "1969 Pontiac GTO", [565] = "90 Honda Civic Hatch", [451] = "90 Ferrari F40", [559] = "92 Toyota Supra", [576] = "57 Chevy Bel Air", [467] = "58 Dodge Coronet", [567] = "63 Chevrolet Bel-Air", [410] = "1980 Dodge Aries", [575] = "1954 Caddilac", [566] = "1984 Chevrolet MonteCarlo", [598]="1990 Chevrolet Caprice", [428]="GMC TopKick", [523]="Police Kawasaki KZ1000", [534] = "76 Lincoln Mark 5" } function findVehicleName(vehicle) if (type(CarNames[getElementModel(vehicle)]) == "string") then return CarNames[getElementModel(vehicle)] else return getVehicleNameFromModel(getElementModel(vehicle)) end end local _vehiclecache = {} local function findVehicleName( value ) if _vehiclecache[value] then return _vehiclecache[value] end for _, theVehicle in pairs( getElementsByType( "vehicle" ) ) do if getElementData( theVehicle, "dbid" ) == value then _vehiclecache[value] = getVehicleName( theVehicle ) return _vehiclecache[value] end end return "?" end Please help, dont working
  13. Vehicle radio, off

    dont working :{
  14. Vehicle radio, off

    dont working