Jump to content

ikzelf

Members
  • Content Count

    12
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ikzelf

  • Rank
    Square
  1. I use this website. Its very usefull and got all the stuff. http://www.w3schools.com/sql/default.asp
  2. local screenx,screeny = guiGetScreenSize() -- animation local state = 'starting' local phase = 0 local alpha = 0 local lastTick = getTickCount() local function getProgress( addtick ) local now = getTickCount() local elapsedTime = now - lastTick local duration = lastTick+addtick - lastTick local progress = elapsedTime / duration return progress end function draw() local RectangleX,RectangleY = interpolateBetween(screenx/2-250, 0-screeny, 0, screenx/2-250, 0, 0, getProgress(10000), 'Linear') dxDrawRectangle(RectangleX, RectangleY, 500, screeny,
  3. You can change your default MTA windows in Settings>Interface>General>Skin you can download diffrent MTA skins here https://forum.mtasa.com/viewforum.php?f=139
  4. Could you make it abel to put way point so you can circle around a object or making a corner whit the cam? anyways i love it
  5. Going to try that Thank's for the quick respond edit: Works fine thanks
  6. the Problem isn't that it doesnt fire, it does fire but it doesn't get the Right X, Y, Z position Infront of the Heli
  7. ye i will post the whole script didnt though it was needed client: addEvent("setFiring", true) addEventHandler("setFiring", getRootElement(), function (ped, veh) if ped then setTimer( function () local x, y, z = getElementPosition(veh) local rx, ry, rz = getElementRotation(veh) local x = x+100*math.cos(math.rad(rz+90)) local y = y+100*math.sin(math.rad(rz+90)) setPedAimTarget ( ped, x, y, z ) end , 50, 0)
  8. Hey, i tryed to get the Right Position 100 Meters Infront of mine Helicopter, but it doesnt get the right position wenn mine Heli is at 45 degrees i tryed this but it only get the right X, Y and not the Z setTimer( function () local x, y, z = getElementPosition(veh) local rx, ry, rz = getElementRotation(veh) local x = x+100*math.cos(math.rad(rz+90)) local y = y+100*math.sin(math.rad(rz+90)) setPedAimTarget ( ped, x, y, z ) end
  9. ikzelf

    vehicleColor

    hm, i tryed it but there are now 2 cars at the same spot spawned, one on top of the other.
  10. ikzelf

    vehicleColor

    i tryed this code now it works only i got one debug and dont know how to fix it cars = { } allcars = {} allcars = allcars + 1 addEventHandler("onResourceStart",resourceRoot,function() local root = xmlLoadFile ("vehicles.map") local hroot = xmlFindChild (root,"cars",0) if (hroot) then for i, v in ipairs (xmlNodeGetChildren(hroot)) do local model = xmlNodeGetAttribute(v,"model") local ID = xmlNodeGetAttribute(v,"ID") local x = xmlNodeGetAttribute(v,"posX") local y = xmlNodeGetAttribute(v,"posY") local z = xmlNodeGetAttribute(v,"po
  11. ikzelf

    vehicleColor

    @jaysds1 it still doesn't work, it just put a random color code on it
  12. ikzelf

    vehicleColor

    hi, i got a weird bug it doesnt set the right vehiclecolor code. i can't find the problem, anyone got a solution? the Code: function spawnVehs() for i, v in ipairs (getElementsByType("veh")) do local model = getElementData(v,"model") local ID = getElementData(v,"ID") local x = getElementData(v,"posX") local y = getElementData(v,"posY") local z = getElementData(v,"posZ") local rotZ = tonumber(getElementData(v,"rotation")) local color1 = getElementData(v,"color1") local color2 = getElementData(v,"color2")
×
×
  • Create New...