iMonkr
Members-
Posts
11 -
Joined
-
Last visited
Everything posted by iMonkr
-
local db addEventHandler("onResourceStart", resourceRoot, function() db = dbConnect(sqlite, "serialdb.db") end) function getConnection() return db end
-
bRegisteredOnce = {} function registerPlayer(source, username, password ) local accountAdded = addAccount(username, password) if (accountAdded) then triggerClientEvent (client, "createNotification", client, "#33aaccCogratuation #ffffffyour have account now .", "success") bRegisteredOnce[source] = true elseif bRegisteredOnce[source] == true then outputChatBox("You already registered on this server!",source) end end addEvent("register", true) addEventHandler("register", root, registerPlayer)
-
hey, i have added a login panel in my server, it has been loaded successfully but its not showing when i enter into my server. Whiee???
- 1 reply
-
- help
- login panel
-
(and 2 more)
Tagged with:
-
what all function should i use to display a text textCreateDisplay textCreateTextItem textDisplayAddText (thats it?) i need to add a text in an object, like if i freeze the object, it should display freezed, if i unfreeze it should display unfreezed. i used textCreateDisplay textCreateTextItem textDisplayAddText these three functions, but its not displaying why?
-
Okaie bro you are right, but wait bro lemme show my script. I used onMarketHit to run the function, but it's not working. Can you check what error?? Here is my script ??
-
okaie thank you bruh bro i have a doubt! can we set nearby object?? i mean we need to be near the object to run this function, for that what element i should use bro
-
ah wait a minute bro client side.... testdoor = createObject(1499, 1580.03149, -1631.73987, 12.38281) bindKey("e", "down", function() local currentFreezeStatus = isElementFrozen ( testdoor ) if currentFreezeStatus then setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have opened the door!",255,255,255) else setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have closed the door!",255,255,255) end end) here is my script bro! it works perfectly.... but i have a doubt bro, if the object is been freezed by a player will it be applicable for other players?
-
bro if i remove source in client side, then what should i add bro or what should i do in server side. can you explain bro, i am new to scripting
-
testdoor = createObject(1499, 1580.03149, -1631.73987, 13.38281) bindKey(source, "e", "down", function() local currentFreezeStatus = isElementFrozen ( testdoor ) if currentFreezeStatus then setElementFrozen ( testdoor, not currentFreezeStatus ) outputChatBox("You have closed the door!",255,255,255) else setElementFrozen ( testdoor, currentFreezeStatus ) outputChatBox("You have opened the door!",255,255,255) end end) its showing an error bad argument @ 'bindkey' [expected player argument 1, but nil]