
bandi94
Members-
Posts
1,037 -
Joined
-
Last visited
Everything posted by bandi94
-
@Blaawee better "getVehicleTurnVelocity". But still , you need to check breaking (agresive breaking leave mark's , but fine slow breaking not leave mark's) , fast acceleration aswell leave marks , slow acceleration not leave mark's , landing after a jump aswell can leave marks. So that would be a lot of checking's but you could detect some of the mark's but not all of them.
-
@Richo , people when hear "laptop" the first respond is go and put it in trash. But this is not true , a medium price laptop , can easy compete a PC. And don't tell me this is not true. I own a lenovo medium price one , and it's very good. Even it's better like my friend's PC (buyed last year in price of 75% of my laptop price). He can't run a .. game in low setting's , i run it on Ultra setting's . Another advantage of laptop as server is low power consumption.
-
light's are in "vehicle.txd" , also you can use shader like 50p said.
-
use "onClientMapStarting" -- it's triggered by "race" itself. But onClientMapStarting is to fast for your script (there will be no vehicles , bk race only after onClientMapStarting create's them). You could search the start command (3,2,1,GO) and runn your script when the countDown start's if i am right there is an Event for it . "onRaceStateChanging" whit first elemet as string "GridCountdown" function ghostmode_on(what) if what == "GridCountdown" then outputChatBox("Starting GhostMode") local v = getPedOccupiedVehicle(getLocalPlayer()) -- Get her's Vehicle ID for index,vehicle in ipairs(getElementsByType("vehicle")) do --LOOP through all Vehicles setElementCollidableWith(vehicle, v, false) -- Set the Collison off with the Other vehicles. end outputChatBox("You are now a Ghost") end end addEvent("onRaceStateChanging" ,true) addEventHandler("onRaceStateChanging" , getRootElement(), ghostmode_on)
-
hmm i think there is no such a function.
-
I dont' get your point .. Explain better ??
-
You are using it with "Race" gamemode right ? Race gamemode has it's own "ghost mode" function so maybe it's over writing your function. Atleast you get the outputChatBox ??
-
function ghostmode_on() local v = getPedOccupiedVehicle(getLocalPlayer()) -- Get her's Vehicle ID for index,vehicle in ipairs(getElementsByType("vehicle")) do --LOOP through all Vehicles setElementCollidableWith(vehicle, v, false) -- Set the Collison off with the Other vehicles. end outputChatBox("You are now a Ghost") end addEvent("onGamemodeMapStart",true) addEventHandler("onGamemodeMapStart", getRootElement(), ghostmode_on)
-
@_sEEk_ using leaked script's =>> you are only a noob who is stealing other's work .... =>> will end in a shit server. 2. I think it's not nice to sell something in witch you got helped and even not giving credit's (maybe a part of money to them). It would be nice if i post a 50% working script , somebody take's his time to fix it and after i am selling it ??? ............... But ehh in this day's who care's about be a fair persone
-
https://wiki.multitheftauto.com/wiki/RU/Resource:Race
-
Now sould work --nitro part function getNitroStateColor() if getVehicleUpgradeOnSlot(vehicle, 8 ) then local level = ( getVehicleNitroLevel(vehicle) or 0 )*100 if level == 100 then return 0, 255, 0 elseif level < 100 and level > 75 then return 128, 150, 0 elseif level < 75 and level > 50 then return 255, 255, 0 elseif level < 50 and level > 25 then return 255, 128, 0 elseif level < 25 and level > 5 then return 255, 0, 0 elseif level < 5 then return 75, 75, 75 end end end
-
it should work if you are in vehicle , space is not a problem (is ignored) , you can put 20 space's between 8 and ) and still work's And that error has no seens , false is returned when the vehicle has no Nitro but he passed by the "getVehicleUpgradeOnSlot(vehicle, 8 )" so the vehicle must have Nitro. Are you trying to get the nitroLevel of you own car(in witch you are in) or other car ? Edit: that's wierd , "getVehicleUpgradeOnSlot(vehicle, 8 )" should stop the function when the care has no Nitro.
-
function tuneSultan(thePlayer) -- addCommandHandler as element 2 return's command name and not vehicle .. local theVehicle = getPedOccupiedVehicle(thePlayer) local account = getPlayerAccount ( thePlayer ) local access = false local id = getVehicleID ( theVehicle ) for _, group in ipairs ( { "Admin", "Moderator", "SuperModerator" } ) do if isObjectInACLGroup ( "user." .. getAccountName(account), aclGetGroup (group) ) and id == 560 then access = true setVehicleHandling(getPedOccupiedVehicle(thePlayer),"driveType","awd") setVehicleHandling(getPedOccupiedVehicle(thePlayer),"brakeDeceleration",11) setVehicleHandling(getPedOccupiedVehicle(thePlayer),"tractionLoss",1) setVehicleHandling(getPedOccupiedVehicle(thePlayer),"tractionMultiplier",1) setVehicleHandling(getPedOccupiedVehicle(thePlayer),"handlingFlags",0x88000) end end if not access then outputChatBox ( "#FF0000You don't have access to this command.", thePlayer, 255, 255, 255, true ) return end end addCommandHandler("tuneSultan", tuneSultan)
-
--nitro part function getNitroStateColor() local nitro = getVehicleUpgradeOnSlot(vehicle, 8 ) --added an space for shown right here in forum between 8 and ) if nitro then local level = getVehicleNitroLevel(vehicle)*100 -- *100 bk nitro level is returned as 0-1 if level > 25 then -- green until nitro level is bigger that 25% return 0, 255, 0 else return 75, 75, 75 end end end
-
LUA support it to. I am using it
-
actually it's possible to create a function inside another function but a bit difrent way function start() --blabla DxRender = function() ----blabla end addEventHandler("onClientRender",root, DxRender) end addCommandHandler(....,start)
-
Yah you made it ?? Now 1-2 week's ago you asked how to keep Dx on the same position on every resolution's. And now you are asking 10$ , aka funny
-
Ok, keep your secret safe
-
You wanna control a ped in another Dim like the player is.
-
Yes it's like that. for Rectangel W,H you can use another set of math not the same as X,Y if you wanna smaller or bigger Rectangel like 400,3000.
-
How to make it : place the window where you want. Like 400,300 on 1152x864 resolution. After that make the math using calculator. X = 400/1152 Y = 300/864 Then in dxDraw you put. dxDrawImage(ScreenW*X,ScreenH*Y,.......) this will be at the same place on every resolution. I hope you get it.
-
Yes "Dealman" BMX includes all bkies except motorbikes. Well i don't played to much with bike's , but if i remember well it have HP , only when it reach 0 it doesent make anything