-
Posts
1,990 -
Joined
-
Last visited
-
Days Won
2
Everything posted by #RooTs
-
because you are giving bad argument? I'm trying to do, if the player is the VIP group, then display the icon in DX server.lua -- bad argument local acls = { "VIP" } function CarVehiclePainelVip(source) local accName = getAccountName ( getPlayerAccount ( source ) ) for _, k in ipairs ( acls ) do if isObjectInACLGroup ("user."..accName, aclGetGroup(k)) then setElementData(source,"VehiclePainel",true) else setElementData(source,"VehiclePainel",false) end end end addEventHandler ( "onResourceStart", getRootElement(), CarVehiclePainelVip ) client.lua if getElementData( source, 'VehiclePainel' ) then dxDrawImage(botX+sizeX+650, 250, 49, 39, "img/icoRepair.png") end
-
@AngelGabriel66, não damos suporte para roteiro roubado., aqui você não será ajudado!
-
Update new version Version: 3.0 | PT-BR
-
Solved
-
I managed to finish, I will start to make a new version. and add more functions
-
Hello Admin, I am contributor of session Portuguese national team. and I received user problems. on alleged problem with network. Look the topic. before the server to be closed, the following message appears https://forum.multitheftauto.com/viewtopic.php?f ... 21#p864621 Gamemode of the user is DayZ
-
yes I did but his example did not help me much, I could hardly understand him. I am already for days trying various ways, You can solve it for me?
-
guys, my problem was not solved. I can send one part of my code by MP, so you can see how I did
-
@Bonus, look my MP
-
this problem haunts me
-
added more function function detachNeon ( theVehicle ) local attachedElements = getAttachedElements ( theVehicle ) for i,v in pairs ( attachedElements ) do --detachElements ( v, theVehicle ) is this even needed? If yes then activate it destroyElement ( v ) end end addEvent( "detachNeon", true ) addEventHandler( "detachNeon", getRootElement(), detachNeon ) its function local playerInVehicle = {} local vehicleGotPlayer = {} function detachNeon ( theVehicle ) local attachedElements = getAttachedElements ( theVehicle ) for i,v in pairs ( attachedElements ) do --detachElements ( v, theVehicle ) is this even needed? If yes then activate it destroyElement ( v ) end end addEvent( "detachNeon", true ) addEventHandler( "detachNeon", getRootElement(), detachNeon ) addEventHandler ( "onVehicleEnter", root, function ( player, seat ) if seat == 0 then playerInVehicle[player] = source vehicleGotPlayer[source] = player addEventHandler ( "onPlayerQuit", player, removeNeonOnEvent ) addEventHandler ( "onPlayerVehicleExit", player, removeNeonOnEvent ) addEventHandler ( "onVehicleExplode", source, removeNeonOnEvent ) end end ) function removeNeonOnEvent ( vehicle ) local vehicle = vehicle or getElementType ( source ) == "vehicle" and source or playerInVehicle[source] local player = getElementType ( source ) == "player" and source or vehicleGotPlayer[vehicle] detachNeon ( vehicle ) playerInVehicle[player] = nil vehicleGotPlayer[vehicle] = nil setElementData ( player, "neon", 0 ) removeEventHandler ( "onPlayerQuit", player, removeNeonOnEvent ) removeEventHandler ( "onPlayerVehicleExit", player, removeNeonOnEvent ) removeEventHandler ( "onVehicleExplode", vehicle, removeNeonOnEvent ) end the problem still remains
-
fail my botton function neonVermelho (_, state) if painel == true then if state == "down" then if isCursorOnElement (botX+sizeX+680, 390, 42, 42) then local theVehicle = getPedOccupiedVehicle(localPlayer) if theVehicle and getVehicleController(theVehicle) == localPlayer then setElementData( localPlayer, "neon", idModel[1] ) -- Vermelho local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) playSound(neonClick) end end end end end addEventHandler ("onClientClick", root, neonVermelho)
-
@KariiiM, look my MP someone besides of @KariiiM, can help me?
-
the problem still remains
-
New Version: 4.0 | PT-BR - released! http://i.imgur.com/y0LQRgK.png http://i.imgur.com/GkXIdOz.png Video:
-
,
-
https://community.multitheftauto.com/in ... s&id=11405
-
girar = getTickCount() / 30% 360 function renderDisplay () local ls,rs = getSoundLevelData(musica) if(ls ~= false) then dxDrawImage(530, 718, 42*(ls/25000), 42*(ls/25000), "som.png", girar, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(810, 718, 42*(ls/25000), 42*(ls/25000), "som.png", girar, 0, 0, tocolor(255, 255, 255, 255), true) end end assim também deve funcionar
-
.
-
the passenger when exit my car, it removes the neon
-
maybe this ? addEventHandler("onVehicleExplode", getRootElement(), function() local theVehicle = getPedOccupiedVehicle(thePlayer) setVehicleDamageProof(theVehicle, true) end)
-
no ?. how to explain my friends have used this event?
-
server side function detachNeon( theVehicle ) local attachedElements = getAttachedElements ( theVehicle ) for i,v in ipairs ( attachedElements ) do detachElements ( v, theVehicle ) destroyElement ( v ) end end addEvent( "detachNeon", true ) addEventHandler( "detachNeon", getRootElement(), detachNeon ) client side addEventHandler("onClientVehicleExplode", getRootElement(), function() -- the event perfect work setElementData( localPlayer, "neon", 0 ) -- Zerar triggerServerEvent ("detachNeon", getLocalPlayer(), source) end) addEventHandler("onClientPlayerVehicleExit", getRootElement(),function() if (isPedInVehicle(localPlayer)) then local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then local driver = getVehicleController(vehicle) if (driver == localPlayer) then setElementData( localPlayer, "neon", 0 ) -- Zerar triggerServerEvent ("detachNeon", getLocalPlayer(), vehicle) end end end end)
-
no work