Jump to content

The.Pheonix

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by The.Pheonix

  1. can u give me example how to do correct ?
  2. i have around 30 mods and i am going add more cars too and edit so much dff ? I think this way will be much easyer
  3. then sometimes i getting error "with this function already handled"
  4. i want add logos for gang cars. if i will add in TXD player most donwload too much because its RPG server and there will be many gangs.
  5. yo guys i am noob and can someone tell me what wrong is with this script ? local picSize = Vector2(2, 5) -- scale the projected image local picPos = Vector2(0, -0.08) -- set image center position local picBright = false -- some vehicle do not have specular hightlighting (ie uranus) in this case set to 'true' local mask = true -- mask vertices with position lower than element position z component local maskHeight = -0.1 -- z position offset local texAddress = 4 -- wrap or mirror for repeated, border for a single one local enableDirt = true local enableEnv = true addEventHandler("onClientResourceStart", getRootElement(), function() if getVersion ().sortable < "1.4.0" then outputChatBox( "Resource is not compatible with this client." ) return end for k, v in ipairs ( getElementsByType ( "vehicle" )) do if getElementData(v, "vehicle.locked") then if getElementData(v, "vehicle.lockedto") == "Phoenix's Legion" then shader, tec = DxShader("proj_paint_flat.fx", 0, 70, false, "vehicle") local texture = DxTexture("p.png", "dxt3") shader:setValue("gTextureColor", texture) shader:setValue("sPicSize", picSize.x, picSize.y) shader:setValue("sPicPos", picPos.x, picPos.y) shader:setValue("sPicBright", picBright) shader:setValue("sTexAddress", texAddress) shader:setValue("sMask", mask) shader:setValue("sMaskHeight", maskHeight) shader:setValue("sEnableDirt", enableDirt) shader:setValue("sEnableEnv", enableEnv) shader:applyToWorldTexture("vehiclegrunge256", v) -- Apply shader shader:applyToWorldTexture("?emap*", v) -- Apply shader local pos = v:getPosition() local elFw = v.matrix:getForward() local elUp = v.matrix:getUp() shader:setValue('elementFwVector', elFw.x, elFw.y, elFw.z) shader:setValue('elementUpVector', elUp.x, elUp.y, elUp.z) shader:setValue('elementPosition', pos.x, pos.y, pos.z) end end end end ) everything is almost fine, after movieng vehicle logo dont movies with vehicle (if u still dont understand logo is not attached to vehicle)
  6. Yo, can someone tell me why this not working ? addEventHandler("onPedWasted", getRootElement(), function (ammo, killer) local killerName = getPlayerName(killer) local weapon = getPedWeapon(killer) local wr, wg, wb = getPlayerNametagColor(killer) if getElementData ( ped, "BotTeam" ) == "Zombies" then exports.killmessages:outputMessage ( {killerName,{"padding",width=3},{"icon",id=weapon or 0},{"padding",width=3},{"color",r=162,g=2,b=2},"Zombie"},getRootElement(),wr,wg,wb ) exports.GEOcommands:giveMoney(killer,100) end end)
  7. The.Pheonix

    bandwidth

    hi, guys i have local server and when joins multipe people it's starting laggy lil bit and can someone tell me if possible to limit bandwidth per user ? and how ?
  8. ty man its working )))
  9. i did like this Cars = {} --## CAR IDs ##-- Cars[429] = true bindKey("lshift","down", function (driftmode) if (isPedInVehicle(source) and Cars[getElementModel(getPedOccupiedVehicle(source))]) then if isDrifting == false then isDrifting = true exports.topbarchat:sendClientMessage("DRIFT ENABLED.",255,45,45) setVehicleHandling(driftmode, "maxVelocity", 300.0) setVehicleHandling(driftmode, "engineAcceleration", 90.0 ) setVehicleHandling(driftmode, "engineInertia", -999) end if isDrifting == true then exports.topbarchat:sendClientMessage("DRIFT DISABLED.",255,45,45) isDrifting = false setVehicleHandling(driftmode, "maxVelocity", 300.0) setVehicleHandling(driftmode, "engineAcceleration", 30 ) setVehicleHandling(driftmode, "engineInertia", 5) end end ) function isDriftingstatus (seat) if Cars[getElementModel(getPedOccupiedVehicle(source))]) then isDrifting == false end ) addEventHandler ( "onPlayerVehicleEnter", getRootElement(), isDriftingstatus ) on server side but i getting same error and script is not working too
  10. hi all, i am new in scripting and can someone tell me what i did wrong ? getting error: 24 unexpected symbol near ')' Cars = {} --## CAR IDs ##-- Cars[429] = true bindKey("lshift","down", function() if (isPedInVehicle(localPlayer) and Cars[getElementModel(getPedOccupiedVehicle(localPlayer))]) then if isDrifting == false then isDrifting = true setVehicleHandling(v, "maxVelocity", 300.0) setVehicleHandling(v, "engineAcceleration", 90.0 ) setVehicleHandling(v, "engineInertia", -999) end if isDrifting == true then isDrifting = false setVehicleHandling(v, "maxVelocity", 300.0) setVehicleHandling(v, "engineAcceleration", 30 ) setVehicleHandling(v, "engineInertia", 5) end end ) function isDriftingstatus (seat) if Cars[getElementModel(getPedOccupiedVehicle(localPlayer))]) then isDrifting == false end ) addEventHandler ( "onPlayerVehicleEnter", getRootElement(), isDriftingstatus )
  11. Hi i using TDM default script and every time when player spawnins its a random skin i need to spawn with one skin for blue and one skin for red team (i mean custom skin id) i am noob at scripting and i cant find place where are that function can
  12. Hi guys i am new and my scripting skills are just a 0. i need to a script was create itself tables in mysql Serverside: CODE REMOVED
  13. When a player joins in the game I want to automatically turned on and when he finish downloading then enable mod too
  14. And can someone tell me how to make like that when player downloads a mod enable itself and if mod is donwlooad on player join then enable mod ?
×
×
  • Create New...