Jump to content

Polak0

Members
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Polak0

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello. I created emergency light system. Everyone can see lights, but it's bugging when you turn off all of these cuz it's blinking I don't know why. If I turn on "swiatla poscigowe" and turn it off, it's okey. The same thing is "swiatla ostrzegawcze". But if I turn on "swiatla poscigowe" and "swiatla ostrzegawcze" and turn it off it's bugging like that: local screenW, screenH = guiGetScreenSize() local sx, sy = guiGetScreenSize() function isMouseIn(psx,psy,pssx,pssy,abx,aby) if not isCursorShowing() then return end cx,cy=getCursorPosition() cx,cy=cx*sx,cy*sy if
  2. Hi. How can I attach dynamic light to vehicle? I tried attachElements, but it doesn't work. bindKey("l", "down", function() local veh = getPedOccupiedVehicle( localPlayer ) local x,y,z = getElementPosition(veh) if getElementModel(veh)==582 then if getElementData(veh, "light_left_on") == true then setElementData(veh, "light_left_on", false) exports["dynamic_lighting"]:destroyLight(light_leftside) else setElementData(veh, "light_left_on", true) --posX,posY,posZ,colorR,colorG,colorB,colorA,dirX,dirY,dirZ,isEuler,falloff,theta,phi,attenuation,...) light_leftside = exports
  3. Hello everyone. I have one problem, i create building in 3DS Max, and I was try to create "windows" in barrier, but it doesn't work. Any help?
  4. The same problem. [21:41:20] ERROR: [scripts]\Event2\sourceS.lua:49: attempt to call upvalue 'player' (a number value) \\Edit New Problem. [21:46:34] ERROR: [Scripts]\Event2\sourceS.lua:50: attempt to compare string with number local Event = false local player = 0 function Event_start(plr) if Event == false then Event = true outputChatBox("Save on event is ON, write /join to join on event.", plr, 255, 255, 255, true) elseif Event == true then Event = false outputChatBox("Saves are OFF.", plr, 255, 255, 255, true) end end addCommandHandler("event_saves"
  5. I have problem with event system. [11:03:18] ERROR: [scripts]\Event2\sourceS.lua:49: attempt to perform arithmetic on local 'player' (a nil value) local Event = false local player = 0 function Event_start(plr) if Event == false then Event = true outputChatBox("Save on event is ON, write /join to join on event.", plr, 255, 255, 255, true) elseif Event == true then Event = false outputChatBox("Saves are OFF.", plr, 255, 255, 255, true) end end addCommandHandler("event_saves", Event_start) addCommandHandler("event_create", function(plr, cmd, t2, t1, value, .
  6. Hello everybody. It's me again. I have a problem with the model. I have a script, which drives compile the *.dff models. But idk where is the problem. PLS help. script on the server's type: function code(name) local f = fileOpen(name) f:read(34) f:setPos(0) b = f:read(34) f:setPos(0) f:write("123456789012345678901234567890") f:setPos(f.size) f:write(string.reverse(b)) f:write("123456789012345678901234567890") f:write(teaEncode("123456789012345678901234567890",math.random(999999))) f:close(f) end code("1337.dff") script on the client's type: local t
  7. Okay, you could give this code because I do not understand a bit lua .
  8. Hello. For some time I have been making models for MTA:SA, and I am wondering if one can encode * .dff, * .txd and * .col files? If so, how, I do not mean methods such as (dff protection by 3ds max *the LOCK DFF* option, but for something else, to change the format other than dff, col and txd. Sorry for my english, i've using google translate ;v
×
×
  • Create New...