MTS_LoneWolf Posted December 1, 2021 Share Posted December 1, 2021 Estou tentando usar a config shared para definir a cordenada de um marker mas consegui ainda Do lado config MarkerATM = {1876.253, -1720.572, 31.805} Do lado server Atms = createMarker(unpack(MarkerATM), "cylinder", 1.5, 0, 170, 255, 144) o server responde com bad argument #1 to 'unpack' (table expected, got nil) Link to comment
MTS_LoneWolf Posted December 1, 2021 Author Share Posted December 1, 2021 outra forma que testei mas tambem não funcionou Lado Config ATMx = 1920.489 ATMy = -1772.352 ATMz = 17.923 Lado Server Atms = createMarker(ATMx, ATMy, ATMz -1, "cylinder", 1.5, 0, 170, 255, 144) Link to comment
Other Languages Moderators androksi Posted December 2, 2021 Other Languages Moderators Share Posted December 2, 2021 E aí, @MTS_LoneWolf! Poderia mostrar o meta.xml? Talvez você esteja deixando a prioridade de carregamento do arquivo 'shared' por último. Deve ser algo assim: <meta> <info author="androksi" /> <script src="config.lua" type="shared" /> <script src="server.lua" type="server" /> </meta> 1 Link to comment
MTS_LoneWolf Posted December 2, 2021 Author Share Posted December 2, 2021 59 minutes ago, androksi said: E aí, @MTS_LoneWolf! Poderia mostrar o meta.xml? Talvez você esteja deixando a prioridade de carregamento do arquivo 'shared' por último. Deve ser algo assim: <meta> <info author="androksi" /> <script src="config.lua" type="shared" /> <script src="server.lua" type="server" /> </meta> Tá com a trocada, nem sabia q isso fazia diferença, vou mudar aq e tentar dnv <meta> <info name="Assalto ATM" author="MTS_LoneWolf#1562" /> <script src="tst.luac" type="server" cache="false" /> <script src="config.lua" type="shared" /> <min_mta_version server="1.5.6-9.18728" client="1.5.6-9.18728" /> </meta> Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now