Jump to content

botshara

Members
  • Content Count

    83
  • Joined

  • Last visited

Everything posted by botshara

  1. How to make mysql insert like insert in my table like this 225;226;336; . On every query insert beside in format 225;. And then how to export results in format like 225 226 336 I hope that you understood my idea
  2. local streams = { } streams[1] = {"http://relay.181.fm:8008", "181.1 - Rock 181 FM"} streams[2] = {"http://relay.181.fm:8068","181.2 - Old School 181 FM"} function showStation(source) local theVehicle = getPedOccupiedVehicle(getLocalPlayer()) local meta = getSoundMetaTags(source) if (theVehicle) then local streamID = getElementData(theVehicle, "vehicle:radio") local streamTitle if tonumber(streamID) ~= 0 then streamTitle = streams[tonumber(streamID)][2] else streamTitle = "Radio Off" end out
  3. addEventHandler( "onVehicleStartEnter", root, function( player, seat ) if seat==0 then local driver = getVehicleOccupant ( source ) local veh = getPedOccupiedVehicle(driver) local occupants = getVehicleOccupants(veh) -- Get all vehicle occupants local seats = getVehicleMaxPassengers(veh) -- Get the amount of passenger seats local occupant local occupantname for sea = 0, seats do if sea == 0 then occupant = occupants[sea] -- Get the occupant
  4. It works, but how set it only work to fist ?
  5. -- client side function antiCarDM() if weapon == 0 and getElementType(hitElement)=="vehicle" then outputChatBox("(( CAR DM IS NOT ALLOWED ))", thePlayer, 255,0,0 ) cancelEvent() end end addEventHandler("onClientPlayerWeaponFire", getRootElement(), antiCarDM) script doesnt work.. And someone can please answer me what need write between function brackets. I cant understand it
  6. It is possilble make custom paintjobs on custom car mod ? I have a script which change paint job on elegy but it doesnt works on custom car mod. I think need something change in texture but I dont know what, please help. Here is texture.fx texture gTexture; technique hello { pass P0 { Texture[0] = gTexture; } } client side local shaderPJ = dxCreateShader ( "texture.fx" ) local shaderPJ2 = dxCreateShader ( "texture.fx" ) local shaderPJ3 = dxCreateShader ( "texture.fx" ) --Elegy paintjob 1 function elegyPaintjob1( ) local elegyPaintjob
  7. function antinj () local occupied = getVehicleOccupant( source ) if (occupied == 0) then cancelEvent() outputChatBox("Tā nav labi darīt!", player) end end addEventHandler ( "onVehicleStartEnter", getRootElement(), antinj ) If the seat 0 is occupied then cant jack other player your from the car. Please help fix
  8. Client Side --- function replaceModel() txd2 = engineLoadTXD("sentinel.txd", 405 ) engineImportTXD(txd2, 405) dff2 = engineLoadDFF("sentinel.dff", 405 ) engineReplaceModel(dff2, 405) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) I need make when write /stopmods then stops replace_Model function, how to make it ?
  9. botshara

    dff to bmp

    How can i convert dff file to bmp. I have paint job in dff file and i need get it in bmp file to replace paint job
  10. Ohh, here me again and i cant understand why car damaging on dimension change if isPedInVehicle ( player ) and getPedOccupiedVehicleSeat( player ) == 0 then vehicle = getPedOccupiedVehicle ( player ) for i = 0, getVehicleMaxPassengers( vehicle ) do local passag = getVehicleOccupant( vehicle, i ) if passag then setElementDimension( passag, getElementDimension( other ) ) setElementInterior( passag, getElementInterior( other ) ) setCameraInterior( passag, getEle
  11. How to set for these all SetElementInterior 24 ? function interjers () -- Joosty createObject(14444,0,0,39.25,0,0,0,24), createObject(14447,17.743886947632,9.8645553588867,44.16029548645,0,0,0), createObject(2204,19.494140625,12.873046875,39.4296875,0,0,271.74682617188), createObject(2200,10.645572662354,11.300369262695,39.4296875,0,0,90), createObject(2204,19.6884765625,10.908203125,39.4296875,0,0,91.741333007813), createObject(2200,25.614032745361,12.748477935791,39.4296875,0,0,270.75), createObject(2180,16.66547203064,11.957201004028,39.429687
  12. I have broken engine and i cant start engine but when i get out and then enter in vehicle i can start engine, where is the problem ?
  13. When I get out and enter in vehicle while he is damaged i can start engine, but before i damaged car and i had not get out of the car i could not start engine, why ? addCommandHandler( "toggleengine", function( player, commandName ) if exports.players:isLoggedIn( player ) then local vehicle = getPedOccupiedVehicle( player ) if vehicle and getVehicleOccupant( vehicle ) == player and doesVehicleHaveEngine( vehicle ) then local data = vehicles[ vehicle ] if data then if data.vehicleID < 0 or export
  14. botshara

    value name

    I fixed it! give(source, id, value - 1, name) give(source, 19, 1, "cigarete")
  15. botshara

    value name

    in first give - name == pack of cigaretes (get from id) but how to in second give - set name == cigarete ? elseif id == 18 then if ( value > 0) then take(source, slot) give(source, id, value - 1, name) -- name == pack of cigaretes give(source, 19, 1, name == cigarete) -- name == cigarete , how ?? exports.chat:me(source, "look inside in pack of cigaretes, and get one out") else exports.chat:me(source, "look inside in pack of cigaretes. It
  16. No errors but doesnt get fightstyle from database or event doesnt start ? addEventHandler("onPlayerLogin", root, function() if exports.players:isLoggedIn( source ) then local characterID = exports.players:getCharacterID( source ) local getfightstyle = exports.sql:query_fetch_assoc("SELECT fightstyle FROM characters WHERE characterID = " .. characterID ) setPedFightingStyle(source, tonumber(getfightstyle["fightstyle"])) end end )
  17. [20:15:13] Starting items [ [20:15:13] SCRIPT ERROR: items/items_functions.lua:6: ')' expected (to close '(' [20;2Hat line 1) near '}' [ [20:15:13] ERROR: Loading script failed: items/items_functions.lua:6: ')' expect [ Hed (to close '(' at line 1) near '}' addEventHandler("onPlayerLogin", root, function() local getfightstyle = exports.sql:query_fetch_assoc("SELECT characterID, fightstyle FROM characters WHERE characterID = " .. exports.players:getCharacterID( source )) setPedFightingStyle(source, tonumber(getfightstyle["fightstyle"])) end }
  18. -- /duty for police addCommandHandler( { "policeduty", "duty" }, function( thePlayer, commandName ) if exports.players:isLoggedIn( thePlayer ) then local characterID = exports.players:getCharacterID( thePlayer ) if exports.factions:isPlayerInFaction( thePlayer, 1 ) then local result = exports.sql:query_assoc( "SELECT factionRank FROM character_to_factions WHERE characterID = " .. characterID ) for key, value in ipairs( result ) do local factionRank = value.factionRank
×
×
  • Create New...