-
Posts
1,028 -
Joined
-
Last visited
-
Days Won
1
Everything posted by ..:D&G:..
-
function destroyBlipsAttachedTo(player) local attached = getAttachedElements ( player ) if ( attached ) then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end function destroyBlipsAttachedTo( ) local attached = getAttachedElements ( source ) if getElementType ( attached ) == "player" then for k,element in ipairs(attached) do if getElementType ( element ) == "blip" then destroyElement ( element ) end end end end You did not specify to who does the script has to attach the blip, dunno if it works, I haven't tested it... If the error is still going, specify the elemnt, maybe something like: element = getElementType ( ) == "blip"
-
You can use this... guiGetScreenSize
-
Wrong section mate, you might want to have a look here: https://forum.multitheftauto.com/viewforum.php?f=106
-
I searched for the script, but I don't have it anymore... And you have to use a label, so the text can be displayed...
-
I don't think there is one... I might have one but can't look now as I am not at home You could use this: fetchRemote and use it on: guiCreateLabel
-
CODE REMOVED BY Solidsnake14 Thanks for helping me by the way
-
I don't know anything about fx so.. thats why I am asking..
-
No errors, but the fuel2 does not show when the fuel is more than 10%... but they are only flickering when the fuel is under 10% (which is fine, because thats what it should do) but fuel2 isn't showing when the fuel is higher than 10%.
-
Check this guy's resources, same pictures and no description... https://community.multitheftauto.com/index.php?p= ... &id=374771 DONE
-
Hey, I want to create a small light, which indicates when the player has like 10% fuel left. I use getTickCount to cycle through 2 pictures (fuel.png = Light on, fuel2.png = light off). I also what to keep the small light off (fuel2.png drawn) but when my fuel is over 10, the image disappears. CODE REMOVED BY Solidsnake14
-
Hello, is there any script that blurs the player's screen side ways?
-
Dunno if you still need help but eh... here you go. addEventHandler( "onClientResourceStart", resourceRoot, function( ) local screenX, screenY = guiGetScreenSize( ) local label = guiCreateLabel( 0, 0, screenX, 15, "BlaBla Server v0.0.0", false ) guiSetSize( label, guiLabelGetTextExtent( label ) + 5, 14, false ) guiSetPosition( label, screenX - guiLabelGetTextExtent( label ) - 5, screenY - 27, false ) guiSetAlpha( label, 0.5 ) end )
-
You know there are resources on mta community that do this? Search for "Police Job"
-
addEventHandler('onClientGUIClick', getRootElement(), function(button, state, absoluteX, absoluteY) if(source == GUIaizvert)then if(button == 'left') then guiSetVisible(raceInformation,false) showCursor(false) end end end) You had to check if the button was pressed if(button == 'left') then
-
You know that the DayZ gamemode has an integrated auto-save system, right? But if you have money and don't know what to do with them, go ahead, pay someone.
-
Here is where the error is coming from: exports.chat:outputChatBox(source, "Unlocks the vehicle. ((" .. exports['veh-names']:getVehicleName(getElementModel(vehicle)) .. "))") --------------------- And here I get the error: attempt to concatenate local 'carName' (a boolean value) Code: local carName = exports['veh-names']:getVehicleName(getElementModel(source)) triggerClientEvent ( "gui:hint", thePlayer, "Info", "This vehicle is a : " .. carName .. ".",4) --------------------- Meta: <meta> <info author="Geo" type="script" description="Vehicle Names"/> <script src="c_nume_vehicule.lua" type="client"/> <export function="getVehicleName" type="client"/> <export function="getVehicleName" type="server"/> </meta> Code: local vehicule = { [ 550 ] = "BMW M5", [ 551 ] = "Dacia 1310 Break", [ 480 ] = "Porshe 911 Sport Clssic", [ 402 ] = "BMW E30", [ 494 ] = "Nissan GTR", [ 502 ] = "Ford Mustang Boss", [ 503 ] = "BMW M3 Sport", [ 555 ] = "BMW M5 Sport", [ 526 ] = "Audi A6", [ 400 ] = "Dacia Duster", [ 507 ] = "Dacia Logan", [ 404 ] = "Dacia 1300", [ 474 ] = "Mercedes E500", [ 496 ] = "Ford Focus", [ 412 ] = "Mazda RX-8", [ 603 ] = "Shelby", [ 574 ] = "Căruță & Cal", [ 411 ] = "Lamborghini Veneno", [ 471 ] = "ATV Honda", [ 419 ] = "Chevrolet Camaro SS", [ 489 ] = "BMW X6", [ 445 ] = "Dacia 1310", [ 533 ] = "Nenault Cleo Sport", [ 544 ] = "Chevrolet Co", [ 589 ] = "Peugeot 206", [ 429 ] = "Chevrolet Corvette", [ 579 ] = "Range Rover", [ 490 ] = "BMW X5" }; function getVehicleName ( model ) return vehicule [ model ] or 'Necunoscut'; end
-
WARNING: Bad argument @ 'getVehicleName' [C] ERROR: attempt to concatenate a boolean value
-
This is what I did in other script: local carName = exports['veh-names]:getVehicleName(source) triggerClientEvent ( "gui:hint", thePlayer, "Info", "This vehicle is a: " .. carName .. ".",4) But it does not work, I get the default name..
-
Same error...
-
I keep getting the error: '}' expected (to close '{' at line 1) near '=' Code: local vehicule = { {550 = "BMW M5"}, {551 = "Dacia 1310 Brek"}, {480 = "Porshe 911 Sport Clssic"}, {402 = "BMW E46 Ursuleț"}, {494 = "Nissan GTR"}, {502 = "Ford Mustang Boss"}, {503 = "BMW M3 Sport"}, {555 = "BMW M5 Sport"}, {526 = "Audi A6"}, {400 = "Dacia Duster"}, {507 = "Dacia Logan"}, {404 = "Dacia 1300"}, {474 = "Mercedes E500"}, {496 = "Ford Focus"}, {412 = "Mazda RX-8"}, {603 = "Shelby"}, {574 = "Căruță & Cal"}, {411 = "Lamborghini Veneno"}, {471 = "ATV Honda"}, {419 = "Chevrolet Camaro SS"}, {489 = "BMW X6"}, {445 = "Dacia 1310"}, {533 = "Nenault Cleo Sport"}, {544 = "Chevrolet Co"}, {589 = "Peugeot 206"}, {429 = "Chevrolet Corvette"}, {579 = "Range Rover"}, {490 = "BMW X5"}, } function getVehicleName(model) return vehicule[model] or 'Necunoscut' end addEvent ( "getVehicleName", true ) addEventHandler ( "getVehicleName", getRootElement(), getVehicleName )
-
Ascenet? Ai scriptul? Oricum acela este valhalla 100% cu loginul de la valhalla facut(cumparat). EDITAT: Am zis ca loginul a fost cumparat de catre Alchol, nu de TINE!!! Ooofff, greu se intelege om cu om in ziua de azi.
-
Dha , intr-adevar , dar Valhalla ? e plina RO de useri de Valhalla , de vR la fel , doar Mihailescu foloseste Vedic . Oricum asta va fi Vedic modificat , intr-o versiune mult mai buna . Probleme au fost rezolvate , mai sunt cateva si nevoia de imbunatatiri si schimbari . Tu iti dai seama ca nimeni nu foloseste valhalla fiind ca nu a reusit nimeni (2-3) sa faca loginul sa mearga, toti folosesc vedic... Tu ne spui cumva sa nu ne mai facem servere de roleplay fiind ca faci tu? Sti ca MTA-ul este ca America "It's a free country!"
-
Can you please give me an example of an export?
-
Eh... ok. How do I do that then?
-
Is there any way I can change the names of the vehicles, so it shows other name, for example I am using getVehicleName so it shows BMW M5 instead of Merit for example. I want to make it so I don't have to set an export or anything else on everyyy code, I want to to be set globaly. Thanks.