-
Posts
91 -
Joined
-
Last visited
Everything posted by bebo1king
-
addEventHandler( "onClientPlayerStuntFinish", root,function lol( stuntType, stuntTime, distance ) dxDrawText("You finished stunt: " .. stuntType ..", Time: " .. tostring( stuntTime ).. ", Distance: " .. tostring( distance ), screenW * 0.2219, screenH * 0.7935, screenW * 0.8839, screenH * 0.8963, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false); end function() addEventHandler("onClientRender",root,lol) end ) now the proplem is line1 '(' is expected near lol this script proplems more than lines
-
line8 attempt to concatenate local 'stuntType' (a nil value)
-
i dont understand you give me example better
-
i see it same addEventHandler ( "onClientRender", getRootElement( ), addEventHandler( "onClientPlayerStuntFinish", getRootElement( ), function ( stuntType, stuntTime, distance ) dxDrawText("You finished stunt: " .. stuntType ..", Time: " .. tostring( stuntTime ).. ", Distance: " .. tostring( distance ), screenW * 0.2219, screenH * 0.7935, screenW * 0.8839, screenH * 0.8963, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false); end ));
-
Hello , i am trying to make so simple mod but i got some problems local screenW,screenH = guiGetScreenSize () addEventHandler( "onClientPlayerStuntStart", getRootElement( ), function ( stuntType ) --outputChatBox( "You started stunt: " .. stuntType ); end ); addEventHandler( "onClientPlayerStuntFinish", getRootElement( ), function ( stuntType, stuntTime, distance ) dxDrawText("You finished stunt: " .. stuntType ..", Time: " .. tostring( stuntTime ).. ", Distance: " .. tostring( distance ), screenW * 0.2219, screenH * 0.7935, screenW * 0.8839, screenH * 0.8963, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false); end ); the problem is the dxDrawText is showing so fast then it disappear
-
put 2 rectangles in each other and it will gone be darker + put them same color to be so
-
sounds = { shutup = {"sound/ahahshutup.mp3", "Shut up!"}, airhorn = {"sound/airhorn.wav", "Air horn!"}, amazing = {"sound/AMAZING.WAV", "AMAZING!"}, andwheni = {"sound/andwheni.mp3", "And when I say jump, you say, how high?"}, apologize = {"sound/apologize.mp3", "Apologize!"}, blew = {"sound/blew.mp3", "Blew!"}, hello1 = {"sound/HELLO.WAV", "Hello!"}, hello2 = {"sound/HelloNoob.mp3", "Hello noob!"}, } local sonidos = {shutup,airhorn,amazing,andwheni,apologize,blew,hello1,hello2} for k,sound in ipairs(getElementsByType("sound")) do table.insert(sonidos,sound) end
-
Good idea bro , thx + thank you all i am beginner
-
i am trying to use setElementVelocity my Question is if i use this code for makeing a skin run faster than other does it may works ?
-
I just the download it and read its codes he dident even add getPlayerName code local global_mejor = 0 local global_nombre = "N/A" dxDrawText(string.format("*〖 Best Drift 〗: %s | (%d)",global_nombre,global_mejor),15,screenHeight-250,screenWidth,screenHeight,Blue,1,"default-bold","left","top",false,false,false,true) see
-
Vegasnnew , gnht , bars , chinagate , elect Thats some objects name
-
Thx Guys proplem Fixed
-
No error All files work 100% when restart resource like 3 times
-
Same Proplem but this time i Restart only 2 times
-
Hello , i am having bug when i start my resource Which Contain TXD files + DFF files + COL files, The bug is when i start the Resource that what happen "http://www.up-00.com/" TXD NOT LOAD!! And after 20-30 Restart Thats what happen "http://www.up-00.com/" TXD LOADED!! No Error in debug Codes: function onResourceStart() col_floors19 = engineLoadCOL ( "green_slab.col" ) engineReplaceCOL ( col_floors19 ,2284) txd_floors19 = engineLoadDFF ( "green_slab.dff" ) engineReplaceModel ( txd_floors19, 2284 ) txd_floors19= engineLoadTXD ( "green_slab.txd" ) engineImportTXD ( txd_floors19 ,2284) end addEventHandler("onClientResourceStart",resourceRoot,onResourceStart) I get the codes from here https://wiki.multitheftauto.com/wiki/EngineImportTXD Example 2
-
The proplem i got is when i press the bindkey it shot the vehicle go black + not destroyed but it don't throw Projectile thats the proplem i got
-
change it to what? could u show me please
-
i was trying to make Special car for Console group FULL CODES: Client function shootProjectile() local vehicle = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( vehicle ) -- get the model ID of the vehicle local car = createBlipAttachedTo ( vehicle, 55 ) setBlipVisibleDistance (car, 220) setVehicleDamageProof ( vehicle, true ) setVehicleColor (vehicle,0,0,0) if ( getElementData ( vehicle, "VIPData" ) == true ) then if id == 579 then if(vehicle) then local x, y, z = getElementPosition(vehicle) createProjectile(vehicle, 19, x, y, z) createProjectile(vehicle, 19, x, y-1, z) createProjectile(vehicle, 19, x, y+1, z) createProjectile(vehicle, 19, x, y-2, z) createProjectile(vehicle, 19, x, y+2, z) createProjectile(vehicle, 19, x, y+3, z) createProjectile(vehicle, 19, x, y-3, z) createProjectile(vehicle, 19, x, y-4, z) createProjectile(vehicle, 19, x, y+4, z) end end end end bindKey("vehicle_fire", "down", shootProjectile) server : addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _,players in ipairs ( getElementsByType ( "player" ) ) do if ( getPlayerAccount( players ) and not isGuestAccount( getPlayerAccount( players ) ) ) then if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( players ) ), aclGetGroup ( "Console" ) ) ) then setElementData ( players, "VIPData", true ) end end end end ) addEventHandler ( "onPlayerLogin", root, function ( _,acc ) if ( isObjectInACLGroup ( "user."..getAccountName( acc ), aclGetGroup ( "Console" ) ) ) then setElementData ( source, "VIPData", true ) end end ) i am beginer
