-
Posts
1,312 -
Joined
-
Last visited
Everything posted by KariiiM
-
Listen, the easy way to do that is to put the remplacer in client side for change the vehicle skin, second thing let the vehicle openable only for Staff team or Player who's in the ACL, after downloading client resource everyone can see your car skin, so i think this way is the best for what you trying to do.
-
local rotation = 0 rotation = rotation + 1 if ( rotation >= 359 ) then rotation = 0 end
-
It should works. local markercords = { [1]={1945.20874, -1778.62756, 13.39060}, [2]={1944.33765, -1773.98657, 13.39060}, [3]={1944.09851, -1771.35437, 13.39060}, [4]={1944.29260, -1767.30762, 13.38281} } addEventHandler("onResourceStart",resourceRoot, function () for i=1, #markercords do local x , y , z = markercords[i][1], markercords[i][2], markercords[i][3] local Marker = createMarker(x , y , z,"cylinder",2,255,255,0,100) end end)
-
Put your code between [lua] [ /lua],because it's hard to read like that
-
That happens even with the machine?
-
It will help people to download resources but if the player his PC with normal/bad quality then he can't handle it even the machine.. if there's a script take alot of player CPU so his FPS will still down. The solution is to clean the scripts of errors and these things that can drop the player his fps, plus use the machine.
-
Yes, but as far as i know with this last release no need to use the virtual machine
-
So, be sure the problem is far of MTA/Server just on scripts Alot of Shaders.. also drop players fps everything related to CPU drop the fps
-
Scripts with errors or some scripts like downloaders causes lag and drop the fps down like that ,Players need good PC to hold out these stuffs ,about the new release of MTA 1.5 FPS changed you can play more servers without fps problem.
-
Be sure the files names are the same as in meta
-
--server side: local infernus = {[411]=true} addEventHandler ( "onVehicleStartEnter", crimainlTheftVehicle, function ( player, seat ) if ( seat == 0 ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( "Admin" ) ) then local theVehicle = source local vehModel = getElementModel(theVehicle) if (infernus[vehModel]) then return end else cancelEvent ( ) outputChatBox ( "You cannot enter this vehicle,Only Admin can.", player, 255, 0, 0 ) end end end) --client side: addEventHandler ( "onClientResourceStart" , resourceRoot , function ( ) txd = engineLoadTXD("infernus.txd", 411 ) engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) end ) --meta.xml should be like that:
-
With timer? or when you start the resource?
-
You want let the image spinning ?
-
I edited your code and i fixed it,now it works perfectly windows1 = guiCreateWindow(171, 151, 280, 439, "Info", false) memo1 = guiCreateMemo(20, 36, 240, 354, "Here Info", false, windows1) button1 = guiCreateButton(53, 397, 165, 32, "Close", false, windows1) guiSetVisible(windows1, false) guiWindowSetSizable(windows1, false) local pickup = createPickup ( 2487.1398925781, -1667.7604980469, 13.34375, 3, 1239, 0 ) function clientPickupHit( hitPlayer, matchingDimension ) if( hitPlayer == localPlayer ) then if (source == pickup) then guiSetVisible (windows1,true) showCursor (true) end end end addEventHandler ("onClientPickupHit",pickup,clientPickupHit) addEventHandler("onClientGUIClick", guiRoot, function () if (source == button1) then guiSetVisible (windows1,false) showCursor(false) end end)
-
Answer my question to let me know about what you want to do
-
These functions are server side only and you put them in client side,so it will not works. What i understand from what you trying to do, is you want let only the player who is in ACL he who can use the vehicle ? isObjectInACLGroup getAccountName getPlayerAccount aclGetGroup
-
Dude; you're wrong, -Put this part only in client side since it's client sided only. txd = engineLoadTXD("infernus.txd", 411 ) --this is veh id engineImportTXD(txd, 411) dff = engineLoadDFF("infernus.dff", 411 ) engineReplaceModel(dff, 411) and other part is server side only, so you have to put it in server side, be carefull. -Don't forget to add them to META,and you didn't explain your problem as well, also i didn't understand what you trying to do
-
It should works, and be sure you did the setElementData of alivetime addEventHandler("onPlayerWasted",root,function() local alivetime = getElementData(source,"alivetime") local name = getPlayerName(source) if tonumber(alivetime)>3 then outputChatBox("Playerul #ffffff"..name.."#ff0000 este suspectat de spawnkill!",root,255,0,0,true) end end)
-
Only author who know his code more than anyone else, since he who compiled it
-
localChat worked because you defined the arguments "msg and msgt" of localChat
-
it's this one? https://community.multitheftauto.com/in ... s&id=10589
