scaryface87
Members-
Posts
123 -
Joined
-
Last visited
Everything posted by scaryface87
-
Making memo editable for certain people and saving it
scaryface87 replied to scaryface87's topic in Scripting
If possible but if it requires a database i dont want it to ssave if u restart the resource then it"ll just saves till the script restartss -
window= guiCreateWindow(264, 189, 355, 294, "", false) guiWindowSetSizable(window, false) memo = guiCreateMemo(14, 25, 331, 259, "", false, window) guiSetVisible(window,false) Hello so i wanna make it so only people in ACL admin will be able to edit it. The one who arent admin shouldnt be able to edit it. So if player 1 does /memo and i write "this is a test" and then presses "save" button it would save if player 2 doess /memo he will see the SAME message that got last saved by player 1 for example
-
Not working , in debug i get bad argument #1 to pairs table expected, got string
-
Hello , I get this in debug if i do so cannot use "..." outside a vararg function near "..." plus ur using the wrong line to add no?
-
I would like to know i its possible to add multiple words in "1" line for example it will add "Hello world" on the table (so if i do /addword Hello World it will add " hello world" due fact it will only add "hello" now)
-
ye no , my fault cuz i didnt rlly explain it well , Thanks its working!!
-
Hello , Maybe i said it wrong but i mean the last value like if getElementData(player,"theData",5) then outputChatBox("ur LVL 5! gz") end this i mean(this isnt working)
-
Hello , Is it possible to get the value of the elemnt data from an hitelement? for example setElementData(hitElement,"data",this value)
-
chair = createObject(1671,0,0,0) function changemyview(thePlayer) local cam = getCameraTarget() attachElements( cam, chair,0,0,10 ) end
-
local cam = getCameraTarget() attachElements( cam, chair ) Hello , Its not working first i had error from local cam = getCameraTarget() , it needed an argument so i wrote "getCameraTarget(thePlayer) but then it does nothing.
-
Hello , Im trying to make my view look at a chair. What i've tried ; chair = createObject(1671,0,0,0) function changemyview(thePlayer) setCameraTarget(thePlayer,chair) end So i wanna know how im able to get an camera attached on the chair (the chair is moveable so it should update if its moving)
-
[setCameraMatrix] server side update camera?
scaryface87 replied to scaryface87's topic in Scripting
I want an camera looking to the chair while the chair is moving -
[setCameraMatrix] server side update camera?
scaryface87 replied to scaryface87's topic in Scripting
Jep i even tried to just create a chair and put the camera on it but i wasnt even able to -
[setCameraMatrix] server side update camera?
scaryface87 replied to scaryface87's topic in Scripting
Not working , nothing in debug -
Hello , I would like to update the camera every time the chair moves. I already tried something but it isnt working, it keeps looking at the same position and isnt following the object This need to be server side (or atleast the chair need to stay server side)! Also i need something to reset the camera back to normal but i dont have a clue how to do that , i tried setCameraTarget(player) but then it looks at the neck. local chair = createObject ( 1671, -1326, -67, 13355, 0, 0, 0 ) function test(player) x,y,z = getElementPosition(chair) setCameraMatrix(player,x,y,z) end addCommandHandler("test123",test)
-
Hello , Im trying to spawn cars automaticle and let them assign to the job thats given. I tought it will work by doing /density but if i do /density Cars 0.1 i get an error ; The debug ; server is running on linux Sorry if wrong forum! not sure if it should be here or on resource , tried to contact crystal but he didnt respond, waiting long time now Greetings
-
Working! Thank you very much
-
still showing nill in the gridlist , no debugerrors
-
server lua 10: do exepted near local lua 10 (line 10) is local word = tostring(v[1])
-
Nothing is in the debugscript
-
Ok that worked ouut , now it says nil nil in the gridlist
-
The gui isnt showing up
-
Oh i didnt see , i tought it was the commandhandler of /addword , my excuses , trying ur code atm
-
Hi It didnt work i think i messed someting with splitting it up from client and server Server : Client :
-
Hm i dont get what to put after collumn1 then after combining it like this ; for i, v in pairs (Table) do window1 = guiCreateWindow(471, 219, 200, 210, "Words in randomizer", false) guiWindowSetSizable(window1, false) gridlist1 = guiCreateGridList(16, 50, 167, 146, false, window1) local row1 = guiGridListAddRow(gridlist1) local collumn1 = guiGridListAddColumn(gridlist1, "Words", 0.9) guiGridListSetItemText ( gridlist1, row1, collumn1, ) -- not ssure if this gonna work , idont know how to call the table in end